- I tried to automated android device Galaxy S4 (v4.2.2).
- I started with the "getting started" as appear in the selendroid.io web
- I used selendroid-standalone-0.10.0-with-dependencies.jar
- tried to automate the app tha the web provide as training : selendroid-test-app0.10.0.ap
- java jdk 1.8
- ADT was installed
- by typing "adb devices " - I see the android device as well
- the selendroid-standalone-0.10.0-with-dependencies.jar and the app were placed in teh same folder 6.. I run the command : java -jar selendroid-standalone-0.10.0-with-dependencies.jar -app selendroid-test-app-0.10.0.apk" -- and 4444 port was opened as needed
Now , when I tried to run the follwing code :
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import io.selendroid.SelendroidCapabilities;
import io.selendroid.SelendroidDriver;
public class login {
public static void main(String[] args) throws Exception {
SelendroidCapabilities capa = new SelendroidCapabilities("io.selendroid.testapp:0.10.0");
WebDriver driver = new SelendroidDriver(capa);
}
}
and I got the following exceptions :
Exception in thread "main" org.openqa.selenium.SessionNotCreatedException: Selendroid server on the device didn't came up after 20sec: