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
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 15/100
Hướng nghiên cứu
Bắt đầu từ phần khởi tạo IOSDriver và các capabilities của thiết bị iOS được hiển thị trong báo cáo, bao gồm setDeviceName, setPlatformVersion và setUdid. Issue không nêu tệp nào trong repository hoặc test nào; trước tiên hãy xác định xem lỗi UDID được báo cáo có thuộc về Java client hay không, sau đó xác định một test có thể tái hiện hoặc một thay đổi cấu hình trước khi triển khai.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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"))));
}
- Ngôn ngữ chính
- Java
- Star
- 1.3k
- Fork
- 755
- Merge trung bình
- 5 ngày 14 giờ
- Pull request đã merge (30 ngày)
- 8
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Không có hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của appium/java-client
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
appium/java-client#2426 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 50/100
appium/java-client#2372 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 30/100
appium/java-client#2368 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 30/100
appium/java-client#2341 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 15/100
appium/java-client#2323 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của appium/java-client
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
OpenAPITools/openapi-generator#25014 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 92/100
AloisSeckar/demos-java#380 ·
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
openhab/openhab-core#5847 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
appsmithorg/appsmith#42297 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100