-
-
Notifications
You must be signed in to change notification settings - Fork 719
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to run many different Scenario() without closing the browser? #37
Comments
I think this is a good feature that will be available soon in upcoming releases ) |
@DavertMik It would be really awesome if the state is reset to the initiale state of the site after each test, in order to enable a clean testing environment. (This is something CasperJS has issues with 😉) |
@DavertMik I've been looking at how to implement this today ... Basic plan of attack is just a custom WebDriverIO Helper that only starts the browser if it hasn't already been created... This could then be easily be expanded to work off a config option, and I'd probably add that after a test fails, it might be worth restarting the browser. ... only problem is there is no beforeAll/afterAll currently implemented (as per #103) so there is no place to hook into really shut down the browser ... any thoughts on doing this? |
@fabioel Have you tried using Nightmare? There's a setting that effectively does what you're referring to.
|
Closing this issue, now there is |
How to run many different Scenario() without closing the browser? This is my code:
This code passes correctly but it opens firefox, test Scenario 1 then closes firefox, opens again, and tests second Scenario. I want it to do everything on one single firefox instance. How can I do?
The text was updated successfully, but these errors were encountered: