且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

无法在使用 Appium 的 iOS 本机应用程序的 webview 页面上找到元素

更新时间:2023-08-24 16:31:40

I'd go for driver.findElement(By.xpath("//UIAStaticText[contains(@name,'Username')]"));其实所有的元素位置搜索方法都可以先在Appium Inspector中进行测试,看看是否有效.

I'd go for driver.findElement(By.xpath("//UIAStaticText[contains(@name,'Username')]")); Actually, all search methods for element location can be tested in Appium Inspector first to see if they work.