I want to handle server timeout in programmatically.
My codes goes like this.
SelendroidConfiguration config = new SelendroidConfiguration();
config.addSupportedApp("apk/test.apk");
selendroidServer = new SelendroidLauncher(config);
URL url = new URL("http://localhost:4444/wd/hub");
// -------------------------------------------------------
SelendroidCapabilities test= SelendroidCapabilities
.device("com.test.android:1.0");
driver = new SelendroidDriver(url, test);
I had the same problem when tests started failing. You have set up the config already. Just add this line.