Can't find an element on a webview page of an android native app using Appium

孤街醉人 提交于 2019-12-25 04:27:37

问题


I am not able to find the elements from android.webkit.webview package using java appium script.

How to get the userText field and password field locators.so that i can pass the value to UI using the Appium script.


回答1:


I have seen this problem with UIAutomator so many times. Try going to some other screen, fetch the elements of that screen and then come back to this screen again. Try to fetch the elements again and should work.



来源:https://stackoverflow.com/questions/32398841/cant-find-an-element-on-a-webview-page-of-an-android-native-app-using-appium

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