How to click a link which is created javascript with Goutte

*爱你&永不变心* 提交于 2019-12-11 07:12:47

问题


Does anyone know how can I click a link which is set by javascript with Goutte ?

For example the link is like this.

<a onclick="document.getElementById('Detail').click()" href="#a" id="Link01" name="Link01">get detail</a>

回答1:


You know Goutte cannot explain javascript. Selenium or casperjs is a better choice.



来源:https://stackoverflow.com/questions/27587679/how-to-click-a-link-which-is-created-javascript-with-goutte

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!