admin管理员组文章数量:1026989
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.
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.
本文标签: javascriptHow to navigate back in history with NightwatchStack Overflow
版权声明:本文标题:javascript - How to navigate back in history with Nightwatch? - Stack Overflow 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/questions/1745658500a2161743.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论