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

查看:346
本文介绍了使用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天全站免登陆