You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am running Cucumber ruby with Capybara and the capybara-screenshot gem. Everything was working fine until I added a driver.close call to the After scenario hook. Now my screenshots are blank. I know that it is because it is closing the driver FIRST and then taking the screenshot. What I don't know is how to fix that - how can I get cucumber to do the driver closing last (but still after each scenario)?
The text was updated successfully, but these errors were encountered:
Try different ordering for your After hook and the require 'capybara-screenshot/cucumber' call in the support file where you have that code. The env.rb and env_changes.rb files are run first, so if you are doing any order-dependent operations then you probably need to put them in the env_changes.rb file. Try putting the After block first, then the require, and see if that works; if not, try the other way.
I am running Cucumber ruby with Capybara and the capybara-screenshot gem. Everything was working fine until I added a driver.close call to the After scenario hook. Now my screenshots are blank. I know that it is because it is closing the driver FIRST and then taking the screenshot. What I don't know is how to fix that - how can I get cucumber to do the driver closing last (but still after each scenario)?
The text was updated successfully, but these errors were encountered: