Not able to inspect element of drop down using UIAutomatorViewer

夙愿已清 提交于 2019-12-12 03:32:22

问题


I want to select options from drop down on Android but I am not able to inspect element of drop down. Also these elements are not present in hierarchy as well.

I can browse the hierarchy and inspect other controls, I can't inspect the elements of a drop down list. UIAutomatorViewer just doesn't let me to click the drop down list. Instead, it shows a blue rectangle around the element which is under the drop down list. I have tried uiautomatorviewer, hierarchyviewer as well as Appium Inspector and all three have the same problem. Is there any way to work around this?

Dropdown is also not of tag Select


回答1:


You can use driver.scrollToExact("Item Name"), where Item Name is option you want to select from drop-down.




回答2:


I am able to locate that element on Note previously I was using Tab Issue is still there on Tab but by using Note I am able to click on that element.

Thanks All for you responds



来源:https://stackoverflow.com/questions/34989266/not-able-to-inspect-element-of-drop-down-using-uiautomatorviewer

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!