无法在使用 Appium 的 android 本机应用程序的 webview 页面上找到元素 [英] Can't find an element on a webview page of an android native app using Appium

查看:43
本文介绍了无法在使用 Appium 的 android 本机应用程序的 webview 页面上找到元素的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法使用 java appium 脚本从 android.webkit.webview 包中找到元素.

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

如何获取 userText 字段和密码字段 locators.以便我可以使用 Appium 脚本将值传递给 UI.

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

推荐答案

我已经多次看到 UIAutomator 出现这个问题.尝试转到其他屏幕,获取该屏幕的元素,然后再次返回该屏幕.尝试再次获取元素并且应该可以工作.

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.

这篇关于无法在使用 Appium 的 android 本机应用程序的 webview 页面上找到元素的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆