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?
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.