Phantomjs未点击代码<a>

时间:2016-01-14 19:50:42

标签: javascript web-scraping phantomjs server-side

I tried many times to click on a <a> tag, but phantomjs doesn't see it, even if I see it when I render the page.

I tried to use this trick, it won't work.

var evObj = document.createEvent('Events');

evObj.initEvent('click', true, false);

document.getElementById('TEST').dispatchEvent(evObj);

0 个答案:

没有答案