Selenium does not close browser window with log

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

Selenium 2.0a6 .

+3
source share
1 answer

An error occurred that caused the .close () method to fail. Try .quit () instead.

+1
source

Source: https://habr.com/ru/post/1777932/


All Articles