FuckTheWorld / chromedriver

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

ChromeDriver hangs after async window close by JavaScript #1132

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Issue Description:
ChromeDriver hangs when a popup window is closed asynchronously by a 
JavaScript, which is triggered by some user action (e.g. click).

I attached an example project which demonstrates the case. You need a running 
Selenium server on localhost:4444 with Chrome capabilities.

Just extract the ZIP, cd into the folder, and run

 mvn test

to see the effect.

To debug it using Eclipse, run 

 mvn jetty:run -Djetty.daemon=false

to have the test HTML pages being served locally. Then, debug the one and only 
test class with eclipse. As soon as the test hangs, you can hit the "pause" 
button in Eclipse's Debug perspective to see the stack trace where the 
execution hangs.

chromedriver.log is also attached.

Original issue reported on code.google.com by flo.albr...@gmx.de on 22 Jun 2015 at 2:29

Attachments:

GoogleCodeExporter commented 9 years ago
One addtional note to the chromedriver.log: between 4 and 36 seconds, I closed 
the browser window, while the test was hanging.

Original comment by flo.albr...@gmx.de on 22 Jun 2015 at 2:31

GoogleCodeExporter commented 9 years ago
After the closing the new window by clicking the slow-close link , you would 
need to switch to the previous window in order to perform further actions.

Please try and let us know.

Thanks,

Original comment by gmanikp...@chromium.org on 22 Jun 2015 at 10:34