Timeout on Android webdriver, getting "Error communicating" if page not loaded in 20 sec

235 views
Skip to first unread message

Doron

unread,
May 27, 2013, 10:36:33 AM5/27/13
to seleniu...@googlegroups.com
Hi, 

Although I'm using the following:
                    driver = new AndroidDriver(capabilities);
   driver.manage().timeouts().implicitlyWait(90, TimeUnit.SECONDS);    
   driver.manage().timeouts().setScriptTimeout(90, TimeUnit.SECONDS);

I'm still getting this error for pages that are not loaded in less for 20 sec :

org.openqa.selenium.remote.UnreachableBrowserException: Error communicating with the remote browser. It may have died.
Build info: version: '2.33.0', revision: '4e90c97', time: '2013-05-22 15:33:32'
System info: os.name: 'Windows 7', os.arch: 'x86', os.version: '6.1', java.version: '1.7.0_07'

Any suggestion ????

Thanks,
Doron.

Doron

unread,
May 28, 2013, 10:34:17 AM5/28/13
to seleniu...@googlegroups.com
Hi Again,

I'm running on Android latest version for Samsung S3 and still can't find how to solve this timeout issue.
In most cases it happen while loading the app (url) for the first time (get command) and this HTTP timeout of 20 sec appear.

Is there people that using this driver on real device ?

Thanks

Tomáš Tobis

unread,
Oct 18, 2013, 6:13:08 AM10/18/13
to seleniu...@googlegroups.com
Hi Doron,

did you find any solution for this, please ?
I have exactly the same issue on android emulator - After about 15 second I get the same error and after 5 more seconds I see page starts to load on the emulator's browser.

Thanks,
Tomas

Doron

unread,
Nov 11, 2013, 7:32:20 AM11/11/13
to seleniu...@googlegroups.com
Hi Tomas,

I didn't find a solution or any evidence in the internet for this problem,
I think that because Android driver is a remote (RC)  then the error related to TCP timeout.

possible solution is to catch the timeout and to retry.
this by reducing timeout configuration to less then 20 sec and catch it.

Thanks
Doron

Doron

unread,
Nov 11, 2013, 8:07:48 AM11/11/13
to seleniu...@googlegroups.com

Suren Mohanathas

unread,
Nov 11, 2013, 9:26:16 AM11/11/13
to seleniu...@googlegroups.com
Hi Doron,
I have no experience with AndoridDriver but on my hub i set the timeout using -timeout when i start the hub and i am sure its being adhered as the timeout value that is used by hub to clean up a node when no client activity is detected. (example  java -jar selenium-server-standalone-2.37.0.jar -role hub -timeout 300)
Suren

Doron

unread,
Nov 11, 2013, 9:33:54 AM11/11/13
to seleniu...@googlegroups.com
The problem is specific to Android webdriver (server).
There is timeout that server return if can't execute JS in less than 10 sec.

For most web app is Ok but for our single page app while the loading time might take 10sec + it is problematic.

Thanks for replying.

Doron
Reply all
Reply to author
Forward
0 new messages