Click here for UI automater screenshot
Not able to handle any elements on one of the screens of Android native application with Appium. I have used UIAutomator to locate the elements.
For rest of the screens, the script is running fine. I am just facing the issue in the above-mentioned screen only.
In the screenshot, 'Skip For Now' button is spied. Please note that the same exception is coming while performing actions on any of the elements from the same screen.
Java client 5.0.4
Selenium Server 3.14
Appium version 1.6.1
The exception is
'Returned value cannot be converted to WebElement:{stacktrace=NoSuchElementError: An element could not be located on the page using the given search parameters.'
PS: I have also added timers and wait in the code.
Here is the different code used to locate 'Skip for Now' button: 1. driver.findElement(By.id("ewc.ewcandroid:id/lay_reservation_bottom_btnCancel")).click();
- driver.findElement(By.xpath("//android.widget.ImageView[@index='0']")).click();