org.openqa.selenium.SessionNotCreatedException: Could not start a new session. Response code 500. Message: An unknown server-side error occurred while processing the command. Original error: Unknown device or simulator UDID: xxxx
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 15/100
調査の方向性
レポートに示されている IOSDriver の構築と iOS デバイスの capabilities から始め、setDeviceName、setPlatformVersion、setUdid を含めて確認します。Issue にはリポジトリのファイルやテストが記載されていないため、まず報告された UDID の失敗が Java クライアントに属するものかどうかを判断し、その後、実装前に再現可能なテストまたは設定変更を定義します。
索引モデルが issue の本文から書いたものです。
説明
Hi All,
I am getting "org.openqa.selenium.SessionNotCreatedException: Could not start a new session. Response code 500. Message: An unknown server-side error occurred while processing the command. Original error: Unknown device or simulator UDID:xxxx" error when I execute my scripts in older device models like iPhone 6S, iPhone 8, iPad mini 2019/20 models which has 40 characters of UDID but the same is working fine in newer devices models which has 24 Characters of UDID. I am not sure if this is any compatibility issue or bug or its the expected behaviour. Also I am new to iOS Real Device Automation.
Please help me out to resolve this issue or please update me if anybody facing this issue and found any work around.
Below is my Environment:
Mac OS: Ventura 13.3.1(a)
Xcode: 14.3.1
New iPad (Where everything is working fine) : 16.3.1
===Getting the above Error with the below devices=====
iPhone 6S : 15.7.5
iPhone 8: 15.2
iPad mini 2019/2020 model: 12.5.7
Appium.io : 8.5.0
Selenium.io: 4.9.1
Below is my Capabilities:
switch (strExecutionMode){
case "Device":
String strDeviceName = properties.getProperty("DeviceName");
options.setDeviceName(strDeviceName);
if(strInstallApp.equalsIgnoreCase("true")){
options.setApp("xxx.app");
}
options.setPlatformName("iOS");
options.setBundleId("xxxxx");
switch (strDeviceName){
case "iPad mini 2019/2020 model:":
options.setPlatformVersion("12.5.7");
options.setUdid("xxxxxxxx-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx");
break;
case "New iPad":
options.setPlatformVersion("16.3.1");
options.setUdid("xxxxxxxx-xxxxxxxxxxxxxxxx");
break;
case "iPhone 8":
options.setPlatformVersion("15.2");
options.setUdid("xxxxxxxx-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx");
break;
case "iPhone 6S":
options.setPlatformVersion("15.7.5");
options.setUdid("xxxxxxxx-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx");
break;
default:
Assert.fail("If Execution Mode is Device then Device Name should be mandatory to configure");
break;
}
break;
case "Simulator":
options.setDeviceName("iPad (10th generation)");
options.setApp("xxxxx.app");
options.setPlatformVersion("16.2");
options.setPlatformName("iOS");
//options.usePrebuiltWda();
break;
}
options.setAutoWebview(true);
options.includeSafariInWebviews();
options.getWebviewConnectTimeout();
options.setWdaLaunchTimeout(Duration.ofSeconds(Long.parseLong(properties.getProperty("ImplicitWaitTime"))));
driver = new IOSDriver(new URL("http://127.0.0.1:4723"),options);
driver.manage().timeouts().implicitlyWait(Duration.ofSeconds(Long.parseLong(properties.getProperty("ImplicitWaitTime"))));
}
- 主要言語
- Java
- スター
- 1.3k
- フォーク
- 755
- 平均マージ
- 5日 14時間
- マージ済み PR(30日)
- 8
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
appium/java-client のほかの issue
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
appium/java-client#2426 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 50/100
appium/java-client#2372 ·
メンテナーはふだん 1 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 30/100
appium/java-client#2368 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 30/100
appium/java-client#2341 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 15/100
appium/java-client#2323 ·
メンテナーはふだん 1 日以内に返信
appium/java-client の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
checkstyle/checkstyle#21755 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信
-
agentic-workflows
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
github/copilot-sdk#2782 ·
メンテナーはふだん 1 日以内に返信
-
documentation Good for newcomer quick win
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
CodeForPhilly/benefit-decision-toolkit#519 ·
メンテナーはふだん 1 日以内に返信
-
area-deployment triage:bot-seen triage:needs-human
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
microsoft/aspire#20533 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信