Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

method is not implemented For scrollUntilTapable or scrollUntilVisible #723

Open
ytrezkioksa opened this issue Jul 29, 2024 · 1 comment
Labels

Comments

@ytrezkioksa
Copy link

ytrezkioksa commented Jul 29, 2024

Summary:
when attempting on scroll the element, got error:
unknown method: Method is not implemented

Logs:

2024-07-29T04:57:13.009Z DEBUG webdriver: request failed due to response error: unknown method
[0-2] 2024-07-29T04:57:13.009Z WARN webdriver: Request failed with status 405 due to Method is not implemented
[0-2] 2024-07-29T04:57:13.009Z INFO webdriver: Retrying 1/1
[0-2] 2024-07-29T04:57:13.009Z INFO webdriver: [POST] http://127.0.0.1:4723/session/815aa173-3dc6-43f1-8a53-d6ec64518f31/execute/sync
[0-2] 2024-07-29T04:57:13.009Z INFO webdriver: DATA {
[0-2]   script: 'flutter:scrollUntilTapable',
[0-2]   args: [
[0-2]     'eyJmaW5kZXJUeXBlIjoiQnlUZXh0IiwidGV4dCI6IlNlbmQgUEhQIHRvIFBoaWxpcHBpbmVzIn0',
[0-2]     {
[0-2]       item: 'eyJmaW5kZXJUeXBlIjoiQnlUeXBlIiwidHlwZSI6IlRleHRGaWVsZCJ9',
[0-2]       dxScroll: 90,
[0-2]       dyScroll: -400,
[0-2]       waitTimeoutMilliseconds: 20000
[0-2]     }
[0-2]   ]
[0-2] }
[0-2] 2024-07-29T04:57:13.014Z DEBUG webdriver: request failed due to response error: unknown method
[0-2] 2024-07-29T04:57:13.014Z ERROR webdriver: Request failed with status 405 due to unknown method: Method is not implemented

Code:

await driver.execute('flutter:scrollUntilVisible', find.byText('Send PHP to Philippines'), {
	item: find.byType('TextField'),
	dxScroll: 90,
	dyScroll: -400,
	waitTimeoutMilliseconds: 20000,
});

OR

await driver.execute('flutter:scrollUntilTapable', find.byText('Send PHP to Philippines'), {
	item: find.byType('TextField'),
	dxScroll: 90,
	dyScroll: -400,
	waitTimeoutMilliseconds: 20000,
});

Dependency:

"appium-flutter-driver": "^2.9.0",
"appium-flutter-finder": "^0.2.0",
@ytrezkioksa ytrezkioksa changed the title ethod is not implemented For scrollUntilTapable or scrollUntilVisible method is not implemented For scrollUntilTapable or scrollUntilVisible Jul 29, 2024
@KazuCocoa
Copy link
Member

Could you attach the Appium server log?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants