首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >org.openqa.selenium.SessionNotCreatedException:无法在Kobiton云中创建新的远程会话错误启动iOS应用程序

org.openqa.selenium.SessionNotCreatedException:无法在Kobiton云中创建新的远程会话错误启动iOS应用程序
EN

Stack Overflow用户
提问于 2022-03-10 10:18:03
回答 1查看 181关注 0票数 0

当试图在kobiton中执行ios平台的自动化脚本时,我收到以下错误消息:

代码语言:javascript
复制
org.openqa.selenium.SessionNotCreatedException: Unable to create new remote session. desired capabilities = Capabilities {app: kobiton-store:v355928, autoGrantPermissions: true, captureScreenshots: true, deviceGroup: KOBITON, deviceName: iPhone X, deviceOrientation: portrait, groupId: 2979, platformName: iOS, platformVersion: 14.8, sessionDescription: iOS Automated Scripts Execu..., sessionName: Test Automa...}
Build info: version: '3.12.0', revision: '7c6e0b3', time: '2018-05-08T14:04:26.12Z'
System info: host: 'C-L-233', ip: '192.168.0.110', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_291'
Driver info: driver.version: IOSDriver
    at io.appium.java_client.remote.AppiumCommandExecutor$1.lambda$1(AppiumCommandExecutor.java:192)
    at java.util.Optional.orElseThrow(Optional.java:290)
    at io.appium.java_client.remote.AppiumCommandExecutor$1.createSession(AppiumCommandExecutor.java:192)
    at io.appium.java_client.remote.AppiumCommandExecutor.createSession(AppiumCommandExecutor.java:209)
    at io.appium.java_client.remote.AppiumCommandExecutor.execute(AppiumCommandExecutor.java:231)
    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:543)
    at io.appium.java_client.DefaultGenericMobileDriver.execute(DefaultGenericMobileDriver.java:42)
    at io.appium.java_client.AppiumDriver.execute(AppiumDriver.java:1)
    at io.appium.java_client.ios.IOSDriver.execute(IOSDriver.java:1)
    at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:207)
    at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:130)
    at io.appium.java_client.DefaultGenericMobileDriver.<init>(DefaultGenericMobileDriver.java:38)
    at io.appium.java_client.AppiumDriver.<init>(AppiumDriver.java:84)
    at io.appium.java_client.AppiumDriver.<init>(AppiumDriver.java:94)
    at io.appium.java_client.ios.IOSDriver.<init>(IOSDriver.java:95)

我还遵循了kobiton启动应用程序的正确语法。还可以找到所需的功能。

代码语言:javascript
复制
capabilities.setCapability("sessionName", "Test Automation - MS")
capabilities.setCapability("sessionDescription", "iOS Automated Scripts Execution")
capabilities.setCapability("deviceOrientation", "portrait")
capabilities.setCapability("captureScreenshots", true)
capabilities.setCapability("app", "kobiton-store:v355928")
capabilities.setCapability("groupId", XXXX)
capabilities.setCapability("deviceGroup", "KOBITON")
capabilities.setCapability("deviceName", iPhone X)
capabilities.setCapability("platformVersion", 14.8)
capabilities.setCapability("platformName", "iOS")
capabilities.setCapability("autoGrantPermissions", "true")

任何解决办法。

EN

回答 1

Stack Overflow用户

发布于 2022-03-10 11:37:57

JDK版本既古老又古老:

代码语言:javascript
复制
java.version: '1.8.0_291'

解决方案

确保:

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/71422460

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档