且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

PhantomJS单击页面上的链接

更新时间:2023-12-03 08:10:04

您正在尝试使用< a> 元素上单击()方法,默认情况下不支持所有浏览器。而是尝试使用 this 而不是 myLink。 click(); 你必须要做 eventFire(myLink,'click');

You are attempting to use the click() method on an <a> element which is not supported in all browser by default. Instead try using something like this where instead of myLink.click(); you will have to do eventFire(myLink, 'click');.