How to quit Driver after running all the scenarios in Cucumb | Selenium Forum
M
Posted on 08/05/2016
Hi,
I am using cucumber selenium.

I am using hooks - before and after, which run before and after each scenario where if I quit the driver in after hook- the browser is closed after each scenario but I want the driver to quit after all the scenarios are run. Couldn't find any global hook.

Could find below link unseful but bit complicated for me and have to understand how can be utilized in our defined framework:
https://github.com/cucumber/cucumber-jvm/blob/master/examples/java-webbit-websockets-selenium/src/test/java/cucumber/examples/java/websockets/SharedDriver.java

Can you think of finding easier solution. Looking forward to get the prompt response.Thanks.