Javascript 检查是否在img上单击超链接已激活(nigthratch.js)
在Javascript 检查是否在img上单击超链接已激活(nigthratch.js),javascript,user-interface,nightwatch.js,uitest,Javascript,User Interface,Nightwatch.js,Uitest,在nighthwatch.js中的UI测试中,我想检查单击图像时,页面是否转到其他页面,例如google.com HTML: <a id= "logoLink" href="https://google.com"> <img src="logo.png" height=20% width=20%> </a> 如何在nighthwatch.js中为其编写UI测试?单击图像并检查页面位置单击图像并检查页面位置
nighthwatch.js
中的UI测试中,我想检查单击图像时,页面是否转到其他页面,例如google.com
HTML:
<a id= "logoLink" href="https://google.com">
<img src="logo.png" height=20% width=20%>
</a>
如何在
nighthwatch.js
中为其编写UI测试?单击图像并检查页面位置单击图像并检查页面位置