appium / appium-flutter-driver

Appium Flutter Driver is a test automation tool for Flutter apps on multiple platforms/OSes. Appium Flutter Driver is part of the Appium mobile test automation tool maintained by community
MIT License
468 stars 183 forks source link

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

Open ytrezkioksa opened 3 months ago

ytrezkioksa commented 3 months ago

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",
KazuCocoa commented 3 months ago

Could you attach the Appium server log?