Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le 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

Aperta
#1,934 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 5 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
15/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
ios, java
Ambito
mobile, testing

Direzione di ricerca

Inizia dalla costruzione di IOSDriver e dalle capabilities del dispositivo iOS mostrate nel report, inclusi setDeviceName, setPlatformVersion e setUdid. L’issue non indica file del repository né test; determina innanzitutto se il fallimento dell’UDID segnalato riguarda il client Java, quindi definisci un test riproducibile o una modifica alla configurazione prima dell’implementazione.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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"))));
}
Lingua principale
Java
Stelle
1.3k
Fork
755
Merge medio
5g 14h
PR unite (30g)
8

Preparare l'ambiente

  • Nessun Dockerfile né file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di appium/java-client

Tutte le issue di appium/java-client

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.