Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/user-interface/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 检查是否在img上单击超链接已激活(nigthratch.js)_Javascript_User Interface_Nightwatch.js_Uitest - Fatal编程技术网

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测试?

单击图像并检查页面位置单击图像并检查页面位置