Unable to find an element in Browser of the Android emulator using Appium and C#

后端 未结 3 1361
南方客
南方客 2021-01-26 12:37

I want to automate mobile web site testing on Android emulator using c# and Appium. There is a simple test scenario I want to automate for the start:
1. Start Browser
2.

3条回答
  •  借酒劲吻你
    2021-01-26 13:21

    Try these 2 statements:

    var element = _driver.FindElement(By.Id("com.android.browser:id/url");
    driver.findElementsByXPath("//*[@class='com.android.browser' and @index='1']");
    

提交回复
热议问题