Ich bin neu in Appium.Mein Appium Script läuft nicht auf Android 6.0.1, wo es reibungslos über Android läuft 5.0.2
Mein Skript funktioniert nicht für Nexus 5 (Android 6.0.1)/MI Note3 (6.0.1), wo es reibungslos über Lenovo A6000 (Android 5.0.2) läuft. Warum?
DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setCapability("device","Android");
capabilities.setCapability("platformVersion","5.0.2");//For Nexus5 it is 6.0.1
String apkpath="Location of 'myApp.apk'";
capabilities.setCapability("app", apkpath);
//app.getAbsolutePath());
capabilities.setCapability("deviceName", "4fa1b92f");//or 'Nexus 5'
capabilities.setCapability("platformName", "Android");
capabilities.setCapability("app-package", myAppPackage);
driver = new AndroidDriver<WebElement>(new URL("http://127.0.0.1:4723/wd/hub"), capabilities);
System.out.println("Successfuly launched");
driver.findElement(By.id("com.********.******:id/btn_login")).click();
Auf Nexus5/MI es gibt
RuntimeException: org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: Error occured while starting App. Original error: com.******.******/com.********.MainActivity or com.*******.******.com.*******.*******.MainActivity never started (WARNING: The server did not provide any stacktrace information
Ausnahme. Diese Ausnahme kommt auf "Treiberinitialisierung" Zeile
Bitte helfen Sie mir, Welche Einstellungen oder Funktionen muss ich ändern.
** @ shiv ** Es gibt keine Linie Nr. 1041 in ** adb.js **. Es hat nur drei Zeilen. – Meet
Es wird zwei adb.js Dateien in Appium geben - Einer hat nur drei Zeilen und der zweite ist größer. Bitte suchen Sie adb.js unter Appium-Ordner und versuchen Sie es. – shiv
C: \ Programme (x86) \ Appium \ node_modules \ appium \ node_modules \ appium-adb \ lib ist der Pfad, wo Sie diese Datei erhalten ... "adb.js" – shiv