appium-flutter-driver icon indicating copy to clipboard operation
appium-flutter-driver copied to clipboard

method is not implemented For `scrollUntilTapable` or `scrollUntilVisible`

Open ytrezkioksa opened this issue 1 year ago • 1 comments

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 avatar Jul 29 '24 05:07 ytrezkioksa

Could you attach the Appium server log?

KazuCocoa avatar Jul 29 '24 05:07 KazuCocoa