報錯求助:Unsupported locator strategy: -ios predicate string
一個簡單的 demo
DesiredCapabilities cap = new DesiredCapabilities();
cap.setCapability("deviceName", "xxxx);
cap.setCapability("udid", "xxxxx");
cap.setCapability("platformName", "iOS");
cap.setCapability("startIWDP",true);
cap.setCapability("automationName","XCUITest");
cap.setCapability("browserName","Safari");
cap.setCapability("safariInitialUrl","xxxxxx");
IOSDriver driver = new IOSDriver(new URL("http://0.0.0.0:4723/wd/hub"),cap);
Thread.sleep(1000);
driver.findElement(MobileBy.iOSNsPredicateString("a")).click();
報錯資訊:
資訊: Detected dialect: W3C
Exception in thread "main" org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: Unsupported locator strategy: -ios predicate string
Build info: version: '4.0.0-alpha-1', revision: 'd1d3728cae', time: '2019-04-24T13:42:21'
System info: host: 'B000000137278', ip: '2400:da00:c0c3:ff12:cf24:fd55:852c:4f21%en0', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.15.4', java.version: '1.8.0_191'
Driver info: io.appium.java_client.ios.IOSDriver
望各位幫助,謝謝~
相關文章
- 求助:TypeError: unsupported format string passed to NoneType.__format__ErrorORMNone
- 新手求助composer報錯
- 求助貼 Jmeter 報錯JMeter
- iOS--Unsupported swift versioniOSSwift
- golang使用sqlx報錯:unsupported type []interface {}, a slice of interfaceGolangSQL
- [求助] jenkins 自動部署報錯Jenkins
- 求助求助 win10 下 安裝 docker 後 ,啟動報錯了Win10Docker
- iOS-常見錯誤:SWIFT_VERSION '5.0' is unsupported, supported versions are: 3.0, 4.0...iOSSwift
- 問題解決:TypeError: unsupported format string passed to NoneType.__format__ErrorORMNone
- VUE: npm run dev報錯Error: error:0308010C:digital envelope routines::unsupportedVueNPMdevErrorGit
- 關於Unsupported major.minor version 52.0報錯問題解決方案
- Service Locator 模式模式
- iOS中的StringiOS
- gateway predicateGateway
- 求助: Laravel6.8 使用 vue 報錯 CSS 和 JS 找不到LaravelVueCSSJS
- [STF 求助帖] stf-app 模組報錯 Key must be a bufferAPP
- React報錯之Function components cannot have string refsReactFunction
- PostgreSQL string_to_array group by 兩個列報錯SQL
- 如題:APP 為 flutter 目前用 automationName:Flutter 報以下錯誤求助APPFlutter
- 解決String cannot be cast to java.util.List報錯ASTJava
- 求助,Laravel 重新接管 dingoApi 錯誤LaravelGoAPI
- WebUI 自動化使用 pytest-xdist 多程序執行報錯求助WebUI
- PHP artisan es:init,報 500 錯誤,是什麼原因呢?求助大神PHP
- 求助 :ubuntu 編譯核心後(make -jn),sudo make modules_install報錯Ubuntu編譯
- 【BUG記錄】MySQL插入Emoji表情報錯"Incorrect string value"MySql
- Appium v1.18.1 查詢 android 10 的 io\.appium\.settings 報錯,求助,感恩!!!APPAndroid
- DcatAdmin 多對多關聯是,multipleSelect 報錯 Array to string conversion
- npm啟動vue專案報錯error:0308010C:digital envelope routines::unsupported的解決辦法NPMVueErrorGit
- Predicate和Consumer應用
- 求助:移動端登入測試,報錯 RemoteDisconnected Remote end closed connection without response。REM
- 報error:0308010C:digital envelope routines::unsupported錯--nodejs版本過高(nvm安裝(更換)不同版本nodejs)ErrorGitNodeJS
- iOS FFmpeg XCode編譯報錯問題 AVMediaTypeiOSXCode編譯
- [求助] mac macaca doctor 報錯,好像是許可權問題,怎麼解決Mac
- 關於Selenium裡如何設計Locator
- java8-謂詞(predicate)Java
- PVE安裝Windows 95報錯 while initializing device IOSWindowsWhiledeviOS
- [求助][iOS] 獲取 iOS 應用的 crash 報告,cpu_resource/diskwrites_resource/wakeups_resource 這些型別的如何分析iOS型別
- requests.exceptions.SSLError……Max retries exceeded with url錯誤求助!!!ExceptionError