Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Selenium does not close browser window with log

When I run test in Selenium 2, I end with selenium.close(); selenium.stop();. In previous version it closed both the windows with tested application and window with test log. In Selenium 2 the second window stays opened - what I can do to close it too ?

Selenium 2.0a6.

like image 255
Rostislav Matl Avatar asked Jun 11 '26 12:06

Rostislav Matl


1 Answers

There was a bug that made the .close() method fails. Try .quit() instead.

like image 173
victorgp Avatar answered Jun 14 '26 04:06

victorgp



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!