Use jQuery DOM selector syntax in PhantomJS?

北城以北 提交于 2019-12-03 13:30:22
Sandip Mondal

Use page.injectJs('jquery-1.6.1.min.js'); it will work fine.

here is a beautiful link for using jquery in phantomjs http://snippets.aktagon.com/snippets/534-how-to-scrape-web-pages-with-phantomjs-and-jquery

vg7g465sd7654

There is people telling that documentation samples loading JQuery are buggy and load JQuery on PhamtomJS is impossible here: loading jquery on phanthomjs

..well, as soon as I posted, I (naturally) found this. Looks like it is possible in fact to include jQuery:

https://github.com/ariya/phantomjs/wiki/Page-Automation

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