This site is in read only mode. Please continue to browse, but replying, likes, and other actions are disabled for now.
3 / 3
Feb 2019

I am trying to identify an object which is back arrow (<) using Appium inspector.
I have written a code to install an app which is working fine. But when it comes to the @test annotation where I am trying to click on arrow , I am getting error.
Can someone please help me …

Code:

I tried 3 ways -

    driver.findElementByXPath("//XCUIElementTypeButton[@name=\" \"]").click();
  driver.findElementByXPath("//XCUIElementTypeButton[@x='0']").click();
  
  driver.findElementByXPath("(//XCUIElementTypeButton)[1]").click();
  • created

    Feb '19
  • last reply

    Feb '19
  • 2

    replies

  • 249

    views

  • 3

    users

Can you try this

driver.findElementByXPath("//XCUIElementTypeButton[@name=’’]").click();

@shweta try:

driver.findElement(MobileBy.className("XCUIElementTypeNavigationBar"))
   .findElement(MobileBy.className("XCUIElementTypeButton")).click();

pls double check classname values in “”