報錯求助: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
- 安裝OUD報錯,unsupported classversion 51.0
- oracle logmnr 報錯"In Memory Undo is unsupported"Oracle
- 求助貼 Jmeter 報錯JMeter
- golang使用sqlx報錯:unsupported type []interface {}, a slice of interfaceGolangSQL
- iOS--Unsupported swift versioniOSSwift
- 執行jar檔案生成pdf報錯,Unsupported URL <file:///homeJAR
- 求助求助 win10 下 安裝 docker 後 ,啟動報錯了Win10Docker
- 報錯:Missing type map configuration or unsupported mappingAPP
- iOS-常見錯誤:SWIFT_VERSION '5.0' is unsupported, supported versions are: 3.0, 4.0...iOSSwift
- 關於Unsupported major.minor version 52.0報錯問題解決方案
- hadoop 程式碼編譯 mvn報錯 Unsupported major.minor version 51.0Hadoop編譯
- Service Locator 模式模式
- gateway predicateGateway
- 問題解決:TypeError: unsupported format string passed to NoneType.__format__ErrorORMNone
- [STF 求助帖] stf-app 模組報錯 Key must be a bufferAPP
- 求助: Laravel6.8 使用 vue 報錯 CSS 和 JS 找不到LaravelVueCSSJS
- 錯誤:Dx unsupported class file version 52.0(解決)
- PostgreSQL string_to_array group by 兩個列報錯SQL
- React報錯之Function components cannot have string refsReactFunction
- 解決String cannot be cast to java.util.List報錯ASTJava
- Unsupported major.minor version 51.0 錯誤解決方案
- 釋出時出錯.求助
- iOS中的StringiOS
- 如題:APP 為 flutter 目前用 automationName:Flutter 報以下錯誤求助APPFlutter
- PHP artisan es:init,報 500 錯誤,是什麼原因呢?求助大神PHP
- 求助 :ubuntu 編譯核心後(make -jn),sudo make modules_install報錯Ubuntu編譯
- WebUI 自動化使用 pytest-xdist 多程序執行報錯求助WebUI
- IOS網路請求報錯返回碼iOS
- Xamarin.iOS真機測試報錯iOS
- 求助,Laravel 重新接管 dingoApi 錯誤LaravelGoAPI
- 無法發貼,NULL錯誤,求助!Null
- 求助:service中get要求key型別必須為string嗎型別
- java8-謂詞(predicate)Java
- unity場景匯入iOSAPP求助UnityiOSAPP
- 【iOS報錯】“The operation couldn’t be completed (LaunchServicesError erroiOSError
- 可能碰到的iOS筆試面試題(11)--報錯警告除錯iOS筆試面試題除錯
- JDBC 連oracle 時出現錯誤,,求助???JDBCOracle