@wreed You’re right, my mistake. But it won’t change the result - it’s not scrolling correctly.
Here is an error I get:
INFO webdriver: RESULT {
[0-0] error: 'no such element',
[0-0] message: 'androidx.test.uiautomator.UiObjectNotFoundException: Cannot scroll to UiSelector[RESOURCE_ID=home_feed_start_searching]',
[0-0] stacktrace: 'io.appium.uiautomator2.common.exceptions.ElementNotFoundException: androidx.test.uiautomator.UiObjectNotFoundException: Cannot scroll to UiSelector[RESOURCE_ID=home_feed_start_searching]\n'
It scrolls to the top of the page, then just ONE scroll down and stops, but the element is lower on the page.
get startSearchingBtn() { return $('//*[@resource-id="home_feed_start_searching"]'); }
Error:
INFO webdriver: COMMAND findElement("xpath", "//*[@resource-id="home_feed_start_searching"]")
[0-0] 2024-10-18T18:51:18.912Z INFO webdriver: [POST] http://localhost:4723/session/a7ae6152-5523-4a58-8a41-bf821a62f756/element
[0-0] 2024-10-18T18:51:18.913Z INFO webdriver: DATA {
[0-0] using: 'xpath',
[0-0] value: '//*[@resource-id="home_feed_start_searching"]'
[0-0] }
[0-0] 2024-10-18T18:51:18.986Z INFO webdriver: RESULT {
[0-0] error: 'no such element',
[0-0] message: 'An element could not be located on the page using the given search parameters.',
[0-0] stacktrace: 'NoSuchElementError: An element could not be located on the page using the given search parameters.\n'