android - Appium - unable to locate elements in view -
android - real device. appium-dotnet-driver v2.0.0.1 c# / vs2015
i have following using uiautomatorviewer, link-image can found here.
https://discuss.appium.io/t/cannot-locate-any-elements-in-this-view/12099
i using following command locate relative layout
readonlycollection linlayouts = _driver.findelementsbyxpath( "//android.widget.linearlayout[@resource-id='com.mobilaurus.supershuttle:id/content_container']//android.widget.relativelayout");
as cannot seem locate element in view, other views previous , later work using id's , xpath's fine, reason particular view appium cannot locate items/elements - using driver.tap co-ordinates different on several devices not practical
i have extended timeout appium applies find request , never comes back..
anyone got ideas why or there way find button @ bottom of screen devices.
thanks in advance
i recommend using online xpath tester.
1) in appium inspector hit copy xml button 2) use xpath provided above , see if receiving unique element back
sorry if isn't helpful, xpath seems strange.
Comments
Post a Comment