Closed kretschmannj closed 2 years ago
Thank you for setting this as an enhancement. One of the product folk will triage this again to help see when we can fit this in an upcoming sprint.
We have something planned here which I think would accomplish this. It will be available for both end-to-end and component testing.
@kretschmannj I am closing this issue, since we are tracking it already. Please feel free to reopen if we have missed anything.
Here it says 'component testing'. Is it plan to work on UI tests too?
@ituradastra --reuse-browser
for reusing browser sessions should work with UI tests as well. You can try it out :)
Description
It would sure be nice if we could execute a Nightwatch test against an existing browser session. Something similar was asked for in https://github.com/nightwatchjs/nightwatch/issues/117 but that eventually closed with no resolution.
Problem Statement/Justification
This would be immensely helpful when debugging a test that has a significant amount of "pre-steps" that need to take place in the browser before we get to the stuff we care about. It would be very helpful if we could first launch a browser and manually navigate to the starting place and then launch Nightwatch with an option telling it to use an existing browser session.
Proposed Solution or API
It's certainly possible, at least in Selenium, as described here .... https://web.archive.org/web/20171129014322/http://tarunlalwani.com/post/reusing-existing-browser-session-selenium/ and here ... https://web.archive.org/web/20171214043703/http://tarunlalwani.com/post/reusing-existing-browser-session-selenium-java/
Alternatives
No response
Additional Information
No response