rshf / chromedriver

Automatically exported from code.google.com/p/chromedriver
2 stars 1 forks source link

webdriver hangs on page load and does not give control back for script execution #402

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.
2.
3.
0.307][INFO]: received Webriver request: GET /status 
[0.372][INFO]: sending Webriver response: 200 {
   "sessionId": "",
   "status": 0,
   "value": {
      "build": {
         "version": "alpha"
      },
      "os": {
         "arch": "x86",
         "name": "Windows NT",
         "version": "5.1 SP3"
      }
   }
}
[0.487][INFO]: received Webriver request: POST /session {
   "desiredCapabilities": {
      "browserName": "chrome",
      "chrome.switches": [  ],
      "chromeOptions": {
         "args": [  ],
         "extensions": [  ]
      },
      "platform": "ANY",
      "version": ""
   }
}
[0.518][INFO]: Launching chrome: "C:\ocuments and 
Settings\prasanna.narayan\Local Settings\Application 
ata\Google\Chrome\Application\chrome.exe" --remote-debugging-port=1986 
--no-first-run --enable-logging --logging-level=1 
--user-data-dir="C:\OCUME~1\PRASAN~1.NAR\LOCALS~1\Temp\scoped_dir4340_10868" 
--load-extension="C:\OCUME~1\PRASAN~1.NAR\LOCALS~1\Temp\scoped_dir4340_7899\inte
rnal" --ignore-certificate-errors data:text/html;charset=utf-8,
[7.865][INFO]: sending Webriver response: 303 
[7.884][INFO]: received Webriver request: GET 
/session/ec8234de5def2f6851044ceeae291408 
[7.885][INFO]: sending Webriver response: 200 {
   "sessionId": "ec8234de5def2f6851044ceeae291408",
   "status": 0,
   "value": {
      "acceptSslCerts": true,
      "applicationCacheEnabled": false,
      "browserConnectionEnabled": false,
      "browserName": "chrome",
      "chrome": {
         "chromedriverVersion": "2.0"
      },
      "cssSelectorsEnabled": true,
      "databaseEnabled": true,
      "handlesAlerts": true,
      "javascriptEnabled": true,
      "locationContextEnabled": true,
      "nativeEvents": true,
      "platform": "Windows NT",
      "rotatable": false,
      "takesScreenshot": true,
      "version": "27.0.1453.116",
      "webStorageEnabled": true
   }
}
[7.903][INFO]: received Webriver request: POST 
/session/ec8234de5def2f6851044ceeae291408/timeouts/implicit_wait {
   "ms": 60000
}
[7.903][INFO]: sending Webriver response: 200 {
   "sessionId": "ec8234de5def2f6851044ceeae291408",
   "status": 0,
   "value": null
}
[7.907][INFO]: received Webriver request: POST 
/session/ec8234de5def2f6851044ceeae291408/window/current/maximize {
   "windowHandle": "current"
}
[10.162][INFO]: waiting for pending navigations...
[10.171][INFO]: done waiting for pending navigations
[10.554][INFO]: sending Webriver response: 200 {
   "sessionId": "ec8234de5def2f6851044ceeae291408",
   "status": 0,
   "value": null
}
[10.556][INFO]: received Webriver request: POST 
/session/ec8234de5def2f6851044ceeae291408/url {
   "url": "http://app-dev.thomsononeqa.com/"
}
[10.569][INFO]: waiting for pending navigations...
[10.581][INFO]: done waiting for pending navigations
[10.673][INFO]: waiting for pending navigations...
[17.299][INFO]: done waiting for pending navigations
[17.299][INFO]: sending Webriver response: 200 {
   "sessionId": "ec8234de5def2f6851044ceeae291408",
   "status": 0,
   "value": null
}
[17.397][INFO]: received Webriver request: GET 
/session/ec8234de5def2f6851044ceeae291408/title 
[17.398][INFO]: waiting for pending navigations...
[17.398][INFO]: done waiting for pending navigations
[17.403][INFO]: waiting for pending navigations...
[17.403][INFO]: done waiting for pending navigations
[17.403][INFO]: sending Webriver response: 200 {
   "sessionId": "ec8234de5def2f6851044ceeae291408",
   "status": 0,
   "value": "Thomson ONE Log In"
}
[17.405][INFO]: received Webriver request: GET 
/session/ec8234de5def2f6851044ceeae291408/title 
[17.405][INFO]: waiting for pending navigations...
[17.406][INFO]: done waiting for pending navigations
[17.407][INFO]: waiting for pending navigations...
[17.407][INFO]: done waiting for pending navigations
[17.408][INFO]: sending Webriver response: 200 {
   "sessionId": "ec8234de5def2f6851044ceeae291408",
   "status": 0,
   "value": "Thomson ONE Log In"
}
[17.410][INFO]: received Webriver request: GET 
/session/ec8234de5def2f6851044ceeae291408/title 
[17.410][INFO]: waiting for pending navigations...
[17.410][INFO]: done waiting for pending navigations
[17.412][INFO]: waiting for pending navigations...
[17.412][INFO]: done waiting for pending navigations
[17.412][INFO]: sending Webriver response: 200 {
   "sessionId": "ec8234de5def2f6851044ceeae291408",
   "status": 0,
   "value": "Thomson ONE Log In"
}
[17.462][INFO]: received Webriver request: POST 
/session/ec8234de5def2f6851044ceeae291408/element {
   "using": "xpath",
   "value": "//input[@id='txtUserName']"
}
[17.463][INFO]: waiting for pending navigations...
[17.463][INFO]: done waiting for pending navigations
[17.518][INFO]: waiting for pending navigations...
[17.518][INFO]: done waiting for pending navigations
[17.518][INFO]: sending Webriver response: 200 {
   "sessionId": "ec8234de5def2f6851044ceeae291408",
   "status": 0,
   "value": {
      "ELEMENT": "0.5428437788505107:1"
   }
}
[17.524][INFO]: received Webriver request: POST 
/session/ec8234de5def2f6851044ceeae291408/element/0.5428437788505107:1/value {
   "id": "0.5428437788505107:1",
   "value": [ "Cttwf1.qabet385@thomson.com" ]
}
[17.524][INFO]: waiting for pending navigations...
[17.524][INFO]: done waiting for pending navigations
[17.716][INFO]: waiting for pending navigations...
[17.716][INFO]: done waiting for pending navigations
[17.716][INFO]: sending Webriver response: 200 {
   "sessionId": "ec8234de5def2f6851044ceeae291408",
   "status": 0,
   "value": null
}
[17.718][INFO]: received Webriver request: POST 
/session/ec8234de5def2f6851044ceeae291408/element {
   "using": "xpath",
   "value": "//input[@id='txtPassword']"
}
[17.718][INFO]: waiting for pending navigations...
[17.718][INFO]: done waiting for pending navigations
[17.743][INFO]: waiting for pending navigations...
[17.743][INFO]: done waiting for pending navigations
[17.743][INFO]: sending Webriver response: 200 {
   "sessionId": "ec8234de5def2f6851044ceeae291408",
   "status": 0,
   "value": {
      "ELEMENT": "0.5428437788505107:2"
   }
}
[17.745][INFO]: received Webriver request: POST 
/session/ec8234de5def2f6851044ceeae291408/element/0.5428437788505107:2/value {
   "id": "0.5428437788505107:2",
   "value": [ "Password@1" ]
}
[17.745][INFO]: waiting for pending navigations...
[17.745][INFO]: done waiting for pending navigations
[17.841][INFO]: waiting for pending navigations...
[17.841][INFO]: done waiting for pending navigations
[17.841][INFO]: sending Webriver response: 200 {
   "sessionId": "ec8234de5def2f6851044ceeae291408",
   "status": 0,
   "value": null
}
[17.843][INFO]: received Webriver request: POST 
/session/ec8234de5def2f6851044ceeae291408/element {
   "using": "id",
   "value": "commandLogin"
}
[17.843][INFO]: waiting for pending navigations...
[17.844][INFO]: done waiting for pending navigations
[17.868][INFO]: waiting for pending navigations...
[17.868][INFO]: done waiting for pending navigations
[17.868][INFO]: sending Webriver response: 200 {
   "sessionId": "ec8234de5def2f6851044ceeae291408",
   "status": 0,
   "value": {
      "ELEMENT": "0.5428437788505107:3"
   }
}
[17.870][INFO]: received Webriver request: POST 
/session/ec8234de5def2f6851044ceeae291408/element/0.5428437788505107:3/click {
   "id": "0.5428437788505107:3"
}
[17.871][INFO]: waiting for pending navigations...
[17.871][INFO]: done waiting for pending navigations
[17.914][INFO]: waiting for pending navigations...
[21.897][INFO]: done waiting for pending navigations
[21.897][INFO]: sending Webriver response: 200 {
   "sessionId": "ec8234de5def2f6851044ceeae291408",
   "status": 0,
   "value": null
}
[21.899][INFO]: received Webriver request: POST 
/session/ec8234de5def2f6851044ceeae291408/element {
   "using": "xpath",
   "value": "//a[@class='FTLMenu_1 tab FTLMenu_3 selectedTab FTLMenu_5']"
}
[21.900][INFO]: waiting for pending navigations...
[21.900][INFO]: done waiting for pending navigations
[21.926][INFO]: waiting for pending navigations...
[21.926][INFO]: done waiting for pending navigations
[21.926][INFO]: sending Webriver response: 200 {
   "sessionId": "ec8234de5def2f6851044ceeae291408",
   "status": 0,
   "value": {
      "ELEMENT": "0.6042259731329978:1"
   }
}
[21.928][INFO]: received Webriver request: GET 
/session/ec8234de5def2f6851044ceeae291408/element/0.6042259731329978:1/text 
[21.928][INFO]: waiting for pending navigations...
[21.928][INFO]: done waiting for pending navigations
[21.987][INFO]: waiting for pending navigations...
[21.987][INFO]: done waiting for pending navigations
[21.987][INFO]: sending Webriver response: 200 {
   "sessionId": "ec8234de5def2f6851044ceeae291408",
   "status": 0,
   "value": "User Profile"
}
[22.057][INFO]: received Webriver request: POST 
/session/ec8234de5def2f6851044ceeae291408/element {
   "using": "id",
   "value": "BtnNext"
}
[22.057][INFO]: waiting for pending navigations...
[22.057][INFO]: done waiting for pending navigations
[22.082][INFO]: waiting for pending navigations...
[22.082][INFO]: done waiting for pending navigations
[22.082][INFO]: sending Webriver response: 200 {
   "sessionId": "ec8234de5def2f6851044ceeae291408",
   "status": 0,
   "value": {
      "ELEMENT": "0.6042259731329978:2"
   }
}
[22.084][INFO]: received Webriver request: GET 
/session/ec8234de5def2f6851044ceeae291408/element/0.6042259731329978:2/attribute
/type 
[22.085][INFO]: waiting for pending navigations...
[22.085][INFO]: done waiting for pending navigations
[22.103][INFO]: waiting for pending navigations...
[22.103][INFO]: done waiting for pending navigations
[22.103][INFO]: sending Webriver response: 200 {
   "sessionId": "ec8234de5def2f6851044ceeae291408",
   "status": 0,
   "value": "submit"
}
[22.105][INFO]: received Webriver request: POST 
/session/ec8234de5def2f6851044ceeae291408/element {
   "using": "id",
   "value": "BtnNext"
}
[22.105][INFO]: waiting for pending navigations...
[22.105][INFO]: done waiting for pending navigations
[22.115][INFO]: waiting for pending navigations...
[22.115][INFO]: done waiting for pending navigations
[22.115][INFO]: sending Webriver response: 200 {
   "sessionId": "ec8234de5def2f6851044ceeae291408",
   "status": 0,
   "value": {
      "ELEMENT": "0.6042259731329978:2"
   }
}
[22.117][INFO]: received Webriver request: POST 
/session/ec8234de5def2f6851044ceeae291408/element/0.6042259731329978:2/click {
   "id": "0.6042259731329978:2"
}
[22.118][INFO]: waiting for pending navigations...
[22.118][INFO]: done waiting for pending navigations
[22.181][INFO]: waiting for pending navigations...
[38.726][INFO]: done waiting for pending navigations
[38.726][INFO]: sending Webriver response: 200 {
   "sessionId": "ec8234de5def2f6851044ceeae291408",
   "status": 0,
   "value": null
}
[38.776][INFO]: received Webriver request: POST 
/session/ec8234de5def2f6851044ceeae291408/timeouts/implicit_wait {
   "ms": 0
}
[38.777][INFO]: sending Webriver response: 200 {
   "sessionId": "ec8234de5def2f6851044ceeae291408",
   "status": 0,
   "value": null
}
[88.813][INFO]: received Webriver request: POST 
/session/ec8234de5def2f6851044ceeae291408/element {
   "using": "xpath",
   "value": "//div[@class='row-fluid']/div[2]/div[1]"
}
[88.864][INFO]: waiting for pending navigations...
[534.040][INFO]: done waiting for pending navigations
[534.040][INFO]: sending Webriver response: 200 {
   "sessionId": "ec8234de5def2f6851044ceeae291408",
   "status": 102,
   "value": {
      "message": "disconnected: unable to receive message from renderer\n  (Session info: chrome=27.0.1453.116)\n  (river info: chromedriver=2.0,platform=Windows NT 5.1 SP3 x86)"
   }
}
[534.201][INFO]: received Webriver request: ELETE 
/session/ec8234de5def2f6851044ceeae291408/window 
[WARNING:chrome_desktop_impl.cc(88)] chrome detaches, user should take care of 
directory:C:\DOCUME~1\PRASAN~1.NAR\LOCALS~1\Temp\scoped_dir4340_10868 and 
C:\DOCUME~1\PRASAN~1.NAR\LOCALS~1\Temp\scoped_dir4340_7899
[545.093][INFO]: sending Webriver response: 200 {
   "sessionId": "ec8234de5def2f6851044ceeae291408",
   "status": 0,
   "value": null
}
[545.095][INFO]: received Webriver request: ELETE 
/session/ec8234de5def2f6851044ceeae291408 
[545.095][INFO]: sending Webriver response: 200 {
   "sessionId": "ec8234de5def2f6851044ceeae291408",
   "status": 6,
   "value": {
      "message": "no such session: ec8234de5def2f6851044ceeae291408\n  (river info: chromedriver=2.0,platform=Windows NT 5.1 SP3 x86)"
   }
}
[545.098][INFO]: received Webriver request: GET /shutdown 
[545.098][INFO]: sending Webriver response: 200 {
   "sessionId": "",
   "status": 0,
   "value": null
}
Started ChromeDriver (v2.0) on port 8440

===============================================
T2 Smoke Test
Total tests run: 3, Failures: 1, Skips: 0
Configuration Failures: 1, Skips: 0
===============================================

What version of the product are you using? On what operating system?
ChromeDriver = 2.0
Chrome = 27.0
OS = winxp 32 bit

Please attach chromedriver.log to your bug report if possible.

Original issue reported on code.google.com by prasanna...@gmail.com on 24 Jun 2013 at 2:00

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
java.lang.AssertionError: error:org.openqa.selenium.TimeoutException: timeout: 
Timed out receiving message from renderer: 10.000
  (Session info: chrome=37.0.2062.103)
  (Driver info: chromedriver=2.10.267521,platform=Windows NT 6.1 SP1 x86) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 310.01 seconds
Build info: version: '2.41.0', revision: 'bd32d4e', time: '2013-12-05 16:15:38'
System info: host: 'manak-PC', ip: 'xxxxxxxx', os.name: 'Windows 7', os.arch: 
'x86', os.version: '6.1', java.version: '1.7.0_67'
Session ID: eb2caca35f704b7cdb006b9c714f85c5
Driver info: org.openqa.selenium.chrome.ChromeDriver
Capabilities [{platform=XP, acceptSslCerts=true, javascriptEnabled=true, 
browserName=chrome, 
chrome={userDataDir=C:\Users\manak\AppData\Local\Temp\scoped_dir6784_21328}, 
rotatable=false, locationContextEnabled=true, version=37.0.2062.103, 
takesHeapSnapshot=true, cssSelectorsEnabled=true, databaseEnabled=false, 
handlesAlerts=true, browserConnectionEnabled=false, nativeEvents=true, 
webStorageEnabled=true, applicationCacheEnabled=false, takesScreenshot=true}]
Command duration or timeout: 310.80 seconds
Build info: version: '2.41.0', revision: 'a7c61cb', time: '2013-10-18 17:14:00'
System info: host: 'PARAS', ip: 'xxxxxx', os.name: 'Windows 7', os.arch: 'x86', 
os.version: '6.1', java.version: '1.7.0_67'
Session ID: c888fcbe-09c4-45de-b5e5-0c681ce0d59f
Driver info: com.on24.bdd.pmxd.Base.CustomWebDriver
Capabilities [{platform=XP, acceptSslCerts=true, javascriptEnabled=true, 
browserName=chrome, 
chrome={userDataDir=C:\Users\manak\AppData\Local\Temp\scoped_dir6784_21328}, 
rotatable=false, locationContextEnabled=true, 
webdriver.remote.sessionid=c888fcbe-09c4-45de-b5e5-0c681ce0d59f, 
version=37.0.2062.103, takesHeapSnapshot=true, cssSelectorsEnabled=true, 
databaseEnabled=false, handlesAlerts=true, browserConnectionEnabled=false, 
webStorageEnabled=true, nativeEvents=true, applicationCacheEnabled=false, 
takesScreenshot=true}]

I also found this issue on chrome 35,36,37 browser also tried all latest 
combination(selenium jar, chromedriver,chrome browser etc) but still occurs 
randomly. Also found that it occurs more frequently in AJAX based web 
application.

Please let me know if this is fixed or issue. Workaround will be helpful.

Original comment by paras.pa...@lmsin.com on 8 Sep 2014 at 8:32

GoogleCodeExporter commented 9 years ago
So, is there a fix for this? Do we wait for new version of chrome/selenium?

Original comment by dejan999...@gmail.com on 15 Sep 2014 at 9:02

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I don't think, this issue depends on the version of selenium/chrome. I face the 
issue in chrome 34,35,36,37. Here is one thing, I tried to overcome this failure

 When the browser hangs after some time, press shift+Esc to check the number the process and memory taken by each process.

There are some cases where the js used in the  third party ads may hang the 
browser, Find out which process makes the browser to hang.

Try to avoid that. 

In my case, a third party ad makes the browser hangs indefinitely.
So, I've just installed ad-blocker plus and blocked the ad during test run.
This is not the fix, But hope it will definitely help some of the selenium 
users preparing test reports at daily basis.

If there is any reproducible test case, please feel free to post here. It might 
help to find out the exact scenario for this expection.

Thanks
Ajmalkhan

Original comment by ajmalkha...@gmail.com on 15 Sep 2014 at 10:07

GoogleCodeExporter commented 9 years ago
In my case, it happens on chrome version 37, selenium version 2.40.0 We didn't 
upgrade selenium for 6 months, and tests started failing recently with this 
error, maybe once in 20-30 runs. If we rerun tests, works fine. Might be 
something with new version of chrome.

Original comment by dejan999...@gmail.com on 17 Sep 2014 at 1:54

GoogleCodeExporter commented 9 years ago
Even I am facing this issue. Below is the error what I got and the logs which 
was reported while clicking a link in Iframe. I tried upgrading the drivers 
aswell as the browser. 

Error : 
Result Message: Assert.Fail failed. disconnected: Unable to receive message 
from renderer
  (Session info: chrome=37.0.2062.120)
  (Driver info: chromedriver=2.10.267521,platform=Windows NT 6.1 SP1 x86_64) (102)

Log:
[206.125][INFO]: COMMAND ClickElement {
   "id": "0.7071966589428484-5"
}
[206.126][INFO]: Waiting for pending navigations...
[206.126][INFO]: Done waiting for pending navigations
[206.300][INFO]: Waiting for pending navigations...

Original comment by ba.raghu@gmail.com on 22 Sep 2014 at 9:37

GoogleCodeExporter commented 9 years ago
This error happens every time on one of our tests. We have the latest driver 
2.10, latest RC 2.43 and the latest Chrome 38

Original comment by jessstok...@gmail.com on 14 Oct 2014 at 12:47

GoogleCodeExporter commented 9 years ago
I have a verbose log where I can reproduce the problem but I can't upload the 
log. Guess it's due to that it says "Issue attachment storage quota exceeded." 
below my comment when writing the comment. Should I send this log to anyone, or 
can the quota problem be solved?
Unfortunately I won't be able to provide a public URL where the problem can be 
reproduced since the environment I'm testing is under development at the moment.

Original comment by Henrik.A...@mobenga.com on 14 Oct 2014 at 12:53

GoogleCodeExporter commented 9 years ago
I've observed the following behaviour. Hope it can help to identify the root 
cause of this issue. 

How we reproduced the issue:
============================
Our Selenium tests repeatedly encountered this issue on ThankYou.aspx page on 
hiring.monster.com site. We couldn't reproduce this issue on all computers 
though. After a further check, we updated hosts file on some computers (located 
in Malaysia) to block 3pty tracking sites (US servers) which slowed down our 
testing. This caused a lot of 404 errors especially for Thank You page.

Solution that worked for us:
============================
After removing all disabled domains from hosts file, the issue was gone. I may 
be wrong, but it seems ChromeDriver cannot handle too many 404 errors, and 
crashes.

Example of banned 3pty tracking sites:
======================================
## DISABLE TRACKING TAG SITES - Used to eliminate marketing tag calls to 
production servers when testing in QA Environment.
## Add the following entries to end of current QAx host file being used.
127.0.0.1 secure.ace-lb.advertising.com
127.0.0.1 secure.ace-tag.advertising.com
127.0.0.1 www.googleadservices.com
127.0.0.1 bizographics.com
127.0.0.1 d.p-td.com
127.0.0.1 trk.enecto.com
127.0.0.1 research-int.se
127.0.0.1 monster.research-int.se
...

Original comment by radek.bo...@gmail.com on 14 Oct 2014 at 1:13

GoogleCodeExporter commented 9 years ago
I agree with #61. That is what I've mentioned in comment #56. Thanks to radek 
for providing more information on this :) :)

Original comment by ajmalkha...@gmail.com on 14 Oct 2014 at 1:16

GoogleCodeExporter commented 9 years ago

Original comment by st...@chromium.org on 14 Oct 2014 at 4:00

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Hello I got the same issue when running a test sample but there is no 
information that I can know where the root error.
Can anyone help me to detect it?
Thank you

The error is:
Test set: TestSuite
-------------------------------------------------------------------------------
Tests run: 5, Failures: 1, Errors: 0, Skipped: 4, Time elapsed: 25.384 sec <<< 
FAILURE!
beforeSuite(com. val.e3.samples.Test01)  Time elapsed: 0 sec  <<< FAILURE!
java.lang.AssertionError: unknown error: unable to discover open pages
  (Driver info: chromedriver=2.0,platform=Windows NT 6.2 x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 23.91 seconds
Build info: version: '2.33.0', revision: 
'4ecaf82108b2a6cc6f006aae81961236eba93358', time: '2013-05-22 12:00:17'
System info: os.name: 'Windows 8.1', os.arch: 'amd64', os.version: '6.3', 
java.version: '1.8.0_25'
Driver info: org.openqa.selenium.chrome.ChromeDriver expected [true] but found 
[false]
    at org.testng.Assert.fail(Assert.java:94)
    at org.testng.Assert.failNotEquals(Assert.java:494)
    at org.testng.Assert.assertTrue(Assert.java:42)
    at com.val.e3.common.TestBase.beforeSuite(TestBase.java:34)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:483)
    at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:84)
    at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:564)
    at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:213)
    at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:138)
    at org.testng.SuiteRunner.privateRun(SuiteRunner.java:277)
    at org.testng.SuiteRunner.run(SuiteRunner.java:240)
    at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
    at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
    at org.testng.TestNG.runSuitesSequentially(TestNG.java:1224)
    at org.testng.TestNG.runSuitesLocally(TestNG.java:1149)
    at org.testng.TestNG.run(TestNG.java:1057)
    at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:74)
    at org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:92)
    at org.apache.maven.surefire.Surefire.run(Surefire.java:180)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:483)
    at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:350)
    at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1021)

Original comment by thanho...@gmail.com on 16 Oct 2014 at 2:57

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
reply for #65
The issue mentioned in the above comment #65 was "java.lang.AssertionError: 
unknown error: unable to discover open pages"

It is not related to the issue we are discussing here. Chrome team have 
provided a solution to your problem on this below ticket
https://code.google.com/p/chromedriver/issues/detail?id=615

It looks like you are using a outdated chrome driver for your projects. Update 
the driver and try it once.

Before adding a comment please make sure. Is your error is related to what we 
are discussing here. 

Thanks 
Ajmal

Original comment by ajmalkha...@gmail.com on 16 Oct 2014 at 5:34

GoogleCodeExporter commented 9 years ago
I update new version of chrome.
But I still see the errors... but it runs instead of hanging and not filling 
URL inside the URL field.

Thanks for your help.
I will try to debug more...

Original comment by thanho...@gmail.com on 17 Oct 2014 at 7:00

GoogleCodeExporter commented 9 years ago
reply for #68

I haven't mention to change the chrome version. I just told to update the 
version of chrome driver you are using. I used chrome driver 2.8,2.9,2.10 with 
chrome 35.x and above. So u can try this combination

Original comment by ajmalkha...@gmail.com on 17 Oct 2014 at 8:54

GoogleCodeExporter commented 9 years ago
I got this to work by using an Eclipse installation other than Luna.

Original comment by pdpon...@gmail.com on 12 Nov 2014 at 10:38

GoogleCodeExporter commented 9 years ago
Is there any news with this issue?

Original comment by Tartu...@gmail.com on 27 Dec 2014 at 11:33

GoogleCodeExporter commented 9 years ago
We can't find a reproducible scenario yet. please refer #56 and #61. The 
solution mentioned in the above case solves the issue to an extend(frequency of 
the failure get reduced.).

But, We are running the tests on windows 64 bit machine with chrome 
driver(32bit). Will this cause any failure?. Is anyone running the test on 
Windows 32 bit and facing the same failure??

Original comment by ajmalkha...@gmail.com on 6 Jan 2015 at 1:29

GoogleCodeExporter commented 9 years ago
In a 64 bit win7 machine, I still get this issue.

 chrome=39.0.2171.95)
  (Driver info: chromedriver=2.9.248315

I am trying to just open a Adobe Omniture (Digital pulse) debugger window and 
switch to it. Nothing else. It opens this popup window and then when it is time 
to switch, it hangs. This switching is seamless in Firefox but has issues in 
Chrome. So still not fixed. 

56 will not work as that is one of the test scenarios for me.

61 is not a fix as there are no domain host files .. all of these issues are 
reproducible locally.

How to reproduce this:
A very simple test would be have the webdrive open a test html or 
www.google.com page or something like that. Have the same webdriver open a 
debugger popup. Say this one:

javascript:void(window.open("","dp_debugger","width=600,height=600,location=0,me
nubar=0,status=1,toolbar=0,resizable=1,scrollbars=1").document.write("<script 
language='JavaScript' id=dbg 
src='https://www.adobetag.com/d1/digitalpulsedebugger/live/DPD.js?auto_refresh=0
'></"+"script>"));

The popup is the Adobe digital pulse debugger popop. Now once the popup and 
google home page opens .. try to switch between windows. And it hangs. And 
gives the above error.

Original comment by shailesh...@gmail.com on 19 Jan 2015 at 6:23

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
#72 -  64 bit windows  handle  32-bit application without problem.  
#73 -  you are running older chromedriver + chrome.  update and try again.

Original comment by andrewch...@chromium.org on 20 Jan 2015 at 11:58

GoogleCodeExporter commented 9 years ago
I've had the same problem with multiple combinations of chrome and chromedriver 
with varying levels of frequency.

Some things I noticed when the problem happens that may aid diagnosis:

The tab that I was waiting for will not respond to Shift-Escape (other tabs in 
the same browser will).

More Tools->Developer tools opens the side panel, but the side panel remains 
blank.

Opening the javascript console gives you a ">" prompt which will take input, 
but no output appears.

Once the browser eventually dies, it leaves a chromedriver process which has to 
be killed with taskkill /f

I've attached a stack dump of all the threads from the chrome process - all the 
threads appear to be in ntdll.dll waiting.

TimeoutException: Message: u'timeout: Timed out receiving message from 
renderer: 10.000\n  (Session info: chrome=39.0.2171.99)\n  (Driver info: 
chromedriver=2.13.307647 
(5a7d0541ebc58e69994a6fb2ed930f45261f3c29),platform=Windows NT 6.1 SP1 x86_64)'

Original comment by ian.ip.s...@gmail.com on 29 Jan 2015 at 11:42

Attachments:

GoogleCodeExporter commented 9 years ago
if you can share your test case, it will be helpful to trouble shoot the issue.

Original comment by andrewch...@chromium.org on 29 Jan 2015 at 6:25

GoogleCodeExporter commented 9 years ago
Unfortunately the site isn't one that is generally accessible and all the 
python test case is doing at the time is refreshing the page (although the test 
runs for many hours and periodically refreshes the page amongst other actions - 
it happened 5 times in 691 page refreshes in a 24 hour period).

    driver.refresh()
  File "c:\Python27\lib\site-packages\selenium-2.42.1-py2.7.egg\selenium\webdriver\remote\webdriver.py", line 546, in refresh
    self.execute(Command.REFRESH)
  File "c:\Python27\lib\site-packages\selenium-2.42.1-py2.7.egg\selenium\webdriver\remote\webdriver.py", line 173, in execute
    self.error_handler.check_response(response)
  File "c:\Python27\lib\site-packages\selenium-2.42.1-py2.7.egg\selenium\webdriver\remote\errorhandler.py", line 164, in check_response

Is there any additional diagnostics I can enable that might help?  The test 
machine also has Visual Studio 2010 installed if there is anything that can be 
done from that...

Original comment by ian.ip.s...@gmail.com on 30 Jan 2015 at 12:11

GoogleCodeExporter commented 9 years ago

Original comment by samu...@chromium.org on 21 Feb 2015 at 12:18

GoogleCodeExporter commented 9 years ago
@ #78 , I tried your testcase having page refresh  driver.navigate().refresh(); 
along with the other actions and executed it continuously for around 400times. 
But the issue is not reproducible.

Can you please describe your test case more in detail. This will help to 
recreate the issue.

Original comment by gmanikp...@chromium.org on 4 Mar 2015 at 10:16

GoogleCodeExporter commented 9 years ago
I get the error using appium and android emulator.
 info: [debug] Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session/afceb4171f771252a578b711348550b5/url","method":"POST","json":{"url":"https://weather.yahoo.com/"}}
> info: [debug] [CHROMEDRIVER STDERR] [316.248][SEVERE]: Timed out receiving 
message from renderer: 299.803
> info: [debug] Didn't get a new command in 500 secs, shutting down...
> info: Shutting down appium session

my cucumber steps:
    Then I go to the url "https://weather.yahoo.com/"
    Then I wait 8 seconds
    Then I go to the url "https://weather.yahoo.com/"
      Did not successfully proxy server command (Selenium::WebDriver::Error::Unk
nownError)

Appium::Driver.new(caps)
$driver.start_driver
@browser = Watir::Browser.new($driver.driver)
@browser.goto url

Original comment by Konstant...@gmail.com on 18 Mar 2015 at 6:26

Attachments:

GoogleCodeExporter commented 9 years ago
This may be what we are now seeing. We have a Windows 8 virtual machine as a 
Jenkins slave operating in headless mode. It worked for a time last year albeit 
interrupted by https://code.google.com/p/chromium/issues/detail?id=422218 which 
is very similar.

The build we're running works fine on my local Windows 7 machine but just sits 
there doing nothing on the Win 8 slave. The following is logged:

Starting ChromeDriver 2.14.313457 (3d645c400edf2e2c500566c9aa096063e707c9cf) on 
port 11023
Only local connections are allowed.

( followed by a long pause )

Tests in error: 
  timeout: Timed out receiving message from renderer: 10.000
  (Session info: chrome=41.0.2272.89)
  (Driver info: chromedriver=2.14.313457 (3d645c400edf2e2c500566c9aa096063e707c9cf),platform=Windows NT 6.3 x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 910.40 seconds
Build info: version: '2.45.0', revision: 
'5017cb8e7ca8e37638dc3091b2440b90a1d8686f', time: '2015-02-27 09:10:26'
System info: host: 'Win8Jenkins', ip: '10.10.0.4', os.name: 'Windows 8.1', 
os.arch: 'amd64', os.version: '6.3', java.version: '1.7.0_55'
Session ID: 36a0f49f6ba8c8a4c67adb0a2698fabc
Driver info: org.openqa.selenium.chrome.ChromeDriver
Capabilities [{platform=WIN8_1, acceptSslCerts=true, javascriptEnabled=true, 
browserName=chrome, chrome={userDataDir=C:\WINDOWS\TEMP\scoped_dir4092_13227}, 
rotatable=false, locationContextEnabled=true, mobileEmulationEnabled=false, 
version=41.0.2272.89, takesHeapSnapshot=true, cssSelectorsEnabled=true, 
databaseEnabled=false, handlesAlerts=true, browserConnectionEnabled=false, 
webStorageEnabled=true, nativeEvents=true, applicationCacheEnabled=false, 
takesScreenshot=true}]
  timeout: Timed out receiving message from renderer: 10.000
  (Session info: chrome=41.0.2272.89)
  (Driver info: chromedriver=2.14.313457 (3d645c400edf2e2c500566c9aa096063e707c9cf),platform=Windows NT 6.3 x86_64) (WARNING: The server did not provide any stacktrace information)

Uncertain if this is the same bug or not...

Original comment by james.gr...@mjog.com on 20 Mar 2015 at 10:02

GoogleCodeExporter commented 9 years ago
See also https://code.google.com/p/chromedriver/issues/detail?id=928

Original comment by james.mk...@gmail.com on 20 Mar 2015 at 10:08

GoogleCodeExporter commented 9 years ago
Tried to reproduce but no luck,  with these methods 
driver.navigate().refresh(); AND driver.manage().timeouts().implicitlyWait(2000,
TimeUnit.MILLISECONDS); in bunch of websites which
deliver huge web traffic.

Can anyone please attach sample testcase if this issue is reliably reproducible.

Original comment by agau...@chromium.org on 9 Apr 2015 at 9:40