Search code examples
androidselenium-webdriverappium

How To Click Particular WebElement in Appium


enter image description here

Click On particular WebElement on Android using Selenium and Appium, after several trials, I created the screenshot to seek help here.

im getting Error NOSuch Element Exception


Solution

  • You can use android's uiautomatorviewer or appium Inspector to check the properties of the element. After knowing the properties of elements such as resource-id,cont-desc, xpath, classname etc You can click on that element.

    driver.findElement(By.id("your resource id)).click();
    //or
    driver.findElement(By.xpath("......")).click();
    

    please read: How to use uiautomatorviewer and appium inspector?