javascript - How to navigate back in history with Nightwatch? - Stack Overflow

I have a test that clicks some links that navigate the browser in a single-page-application. In the tes

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 badges
Add a ment  | 

1 Answer 1

Reset to default 7

A simple client.back() should work, as documented in the API/Protocol reference.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745658502a4638689.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信