Need to identify xpath for android element using appium

前端 未结 4 2593
没有蜡笔的小新
没有蜡笔的小新 2021-02-20 16:49

I am testing my Android application using Appium framework. I have an android screen that doesn\'t have ids for its views (and I don\'t want to add...), so I thought using Xpath

4条回答
  •  时光说笑
    2021-02-20 17:18

    Just try this u can access easily

    driver.findElement(By.xpath("//*[@class='android.widget.FrameLayout' and @bounds='[418,564][780,885]']")).click();
    

    Screenshot of UI

提交回复
热议问题