How can I reset the session for each scenario? I am using cucumber, watir-webdriver, parallel_tests gem and ruby. It runs with 8 threads but treats each thread as one long scenario. On my local this is fine but when sending it to sauce labs I want have each scenario to be its own session so I can update pass/fail/etc. This is what I have tried:
After do |scenario|
browser.driver.instance_variable_get('@bridge').deleteAllCookies
end
This did not work unfortunately.