SeleniumHQ / selenium-google-code-issue-archive

Archive, please see main selenium repo
https://github.com/seleniumhq/selenium
345 stars 195 forks source link

Android Emulator gets failed to run the script for the first time #2081

Closed lukeis closed 8 years ago

lukeis commented 8 years ago

Originally reported on Google Code with ID 2081

All,

I have successfully set up the environment for android automation using selenium 2.
But still, when i run my code for the first time (after starting the emulator, port
forwarding and kick starting the web driver in emulator), it fails. Without doing any
change, am re-running the same code and its getting passed.

Am expecting the execution to start in the first run itself. But its getting started
only in the second run.

Environment components:
Intellij Idea as IDE
Android Platform 3.1 with API 12
android-server-2.0.2rc3.apk 
os.name: 'Windows XP', 
os.arch: 'x86', 
os.version: '5.1', 
java.version: '1.6.0_20'
Selenium version: 2.0
Browser: FF
Brower version:3.5.19

Here is the code snippet for failure..

Jul 15, 2011 6:05:43 PM org.apache.http.impl.client.DefaultRequestDirector execute
INFO: I/O exception (org.apache.http.NoHttpResponseException) caught when processing
request: The target server failed to respond
Jul 15, 2011 6:05:43 PM org.apache.http.impl.client.DefaultRequestDirector execute
INFO: Retrying request
org.openqa.selenium.WebDriverException: java.net.SocketException: Connection reset
System info: os.name: 'Windows XP', os.arch: 'x86', os.version: '5.1', java.version:
'1.6.0_20'
Driver info: driver.version: RemoteWebDriver
 at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:406)
 at org.openqa.selenium.remote.RemoteWebDriver.get(RemoteWebDriver.java:166)
 at testa.testAskHPLoad(testa.java:56)

Please do let me know if you need more info to debug this..

Thanks in advance!

Reported by saran.automation on 2011-07-19 12:27:36

lukeis commented 8 years ago

Reported by barancev on 2011-10-13 06:34:57

lukeis commented 8 years ago

Reported by berrada@google.com on 2011-10-21 04:19:58

lukeis commented 8 years ago

Reported by berrada@google.com on 2012-01-27 16:58:00

lukeis commented 8 years ago
Selenium project no longer supports the AndroidDriver.

Please use Selendroid instead:
http://selendroid.io/webview.html

And log any issues against that project:
https://github.com/selendroid/selendroid/issues

Reported by luke.semerau on 2013-12-26 21:57:35

lukeis commented 8 years ago

Reported by luke.semerau on 2015-09-17 18:13:16