尽管 iOS 中存在元素,但无法单击元素

问题描述 投票:0回答:1

我正在浏览器堆栈中自动化 iOS 应用程序。尽管该元素是可见的,但它无法检测到它来执行任何单击操作,并且脚本失败并出现以下错误。请帮助我解决问题。

失败 - 使用给定的搜索参数无法在页面上找到元素。有关此错误的文档,请访问:https://www.selenium.dev/documentation/webdriver/troubleshooting/errors#no-such-element-exception构建信息:版本:'4.18.1',修订版:' b1d3319b48' 系统信息:os.name:'Mac OS X',os.arch:'aarch64',os.version:'14.4',java.version:'17.0.10' 驱动程序信息:io.appium.java_client.ios .IOSDRIVER命令:[7F47DEF139A42F3FCDCDC54A46A3E9D060A8F6B,FINDELEMENT {使用= XPath,value = // xcuielementtypebutton [@label ='close ='close'}] ium:automationname:xcuitest 、 appium:bootstrapPath: /usr/local/.browserstack/co...、 appium:browserstack.isTargetBased: true、 appium:bundleID: com.zoll.respondcloud、 appium:bundleId: com.zoll.respondcloud、 appium:databaseEnabled: false、appium:deviceName: iPhone 11 Pro Max、appium:deviceOrientation: PORTRAIT、appium:javascriptEnabled: true、appium:keychainPassword: [编辑值]、appium:keychainPath: [编辑值]、appium:locationContextEnabled: false、appium:networkConnectionEnabled : false, appium:newCommandTimeout: 0, appium:noReset: true, appium:optimalHubUrl: hub-aps.browserstack.com, appium:orientation: PORTRAIT, appium:realMobile: true, appium:safariIgnoreFraudWarning: true, appium:safariInitialUrl: http ://mobile-internet-chec...、appium:takesScreenshot: true、appium:udid: 00008030-0002381826D0802E、appium:useXctestrunFile: true、appium:waitForQuithesis: false、appium:wdaStartupRetries: 3、appium:webStorageEnabled: false、 appium:webkitResponseTimeout:20000,浏览器版本:null,bstack:选项:{buildIdentifier:#21,主机名:MAC-KCWGPMK09L},平台名称:IOS}会话ID:7f47def139a42f3ef3fcdc54a46a3e9d060a8f6b

appium appium-ios
1个回答
0
投票

请使用 Appium Inspector 在应用程序上获取定位器并尝试运行测试。

参考:https://www.browserstack.com/docs/app-automate/appium/integrations/appium-desktop

如果您仍然遇到该问题,我建议您向 BrowserStack 支持团队提出。

© www.soinside.com 2019 - 2024. All rights reserved.