Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đang mở
#1,934 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

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
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
ios, java
Lĩnh vực
mobile, testing

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

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của appium/java-client

Tất cả issue của appium/java-client

Issue tương tự

Thêm issue về Java

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.