I have a test that clicks some links that navigate the browser in a single-page-application. In the test, I want the browser to go back to the original page, and then assert that the state is correct.
How can I make Nightwatch go back as if it clicked the back button in the browser?
A simple client.back()
should work, as documented in the API/Protocol reference.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With