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?
Share Improve this question asked Mar 8, 2016 at 16:10 MatsemannMatsemann 21.9k20 gold badges59 silver badges90 bronze badges1 Answer
Reset to default 7A simple client.back()
should work, as documented in the API/Protocol reference.
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745658502a4638689.html
评论列表(0条)