Reputation: 65
I am new to automated testing and selenium grid. I have been able to start my hub and create nodes in which I run my tests, but, I am hitting a wall here. After I run a test and the browser closes it keeps the session open thus making my next test fail and the session is kept alive for a long time when I look at the available instances in the hub's console. How can I make the session end and release the browser instance for subsequent tests?
Upvotes: 1
Views: 4898
Reputation: 961
The simplest issue would be that you are using driver.close()
which only closes the browser window and not the driver itself. You would need to use driver.quit()
. If this is not the issue it would be easier to troubleshoot if we knew what WebDriver bindings you are using in your tests.
Upvotes: 3