gpt4 book ai didi

ios - 启动iOS驱动程序时出现问题

转载 作者:行者123 更新时间:2023-12-01 16:38:41 24 4
gpt4 key购买 nike

我在与驱动程序执行测试时遇到困难。

1)我用以下命令启动服务器(网格无法启动,因为我被踢出了……进入另一个线程)

java -jar ios-server-standalone-0.6.6-SNAPSHOT.jar -port 1111

2)我从各自的目录启动测试

3)日志转储以下内容:
The server cannot run Capabilities [{platform=MAC, cssSelectorsEnabled=false, CFBundleIdentifier=com.apple.mobilesafari, javascriptEnabled=true, nativeEvents=false, locale=en_GB, CFBundleName=Safari, variation=Retina4, device=iphone, rotatable=false, takesScreenshot=false, sdkVersion=7.1, version=}] at the moment.org.uiautomation.ios.application.APPIOSApplication cannot be cast to org.uiautomation.ios.application.IPAApplication

Build info: version: 'unknown', revision: 'unknown', time: 'unknown'

System info: host: '(hidden for privacy)', ip: '(hidden for privacy)', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.9.5', java.version: '1.7.0_67'

Driver info: driver.version: unknown

Build info: version: 'unknown', revision: 'unknown', time: 'unknown'

System info: host: '(hidden for privacy)', ip: '(hidden for privacy)', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.9.5', java.version: '1.7.0_67'

Driver info: driver.version: unknown (org.openqa.selenium.SessionNotCreatedException) (Selenium::WebDriver::Error::WebDriverError)

[remote server] org.uiautomation.ios.command.uiautomation.NewSessionNHandler(NewSessionNHandler.java):100:in `safeStart'

根本原因是什么?

最佳答案

遇到完全相同的问题后,您可以尝试使用

capabilities.setCapability("simulator", true);

这至少使我克服了这个问题(并进入了另一个问题)。

关于ios - 启动iOS驱动程序时出现问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26112114/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com