Is there any way to run .js scripts in phantomjs via Python+selenium?
<p>I'm currently using selenium in Python to create a session of Phantomjs browser and I was wondering if there is any way of running .js scripts on that browser (since I can't find anything on Phantomjs docs) or if I have to switch to Firefox and install an extension like Tampermonkey or such. Thanks for help and sorry for bad english.</p>

<p>PhantomJS is essentially a headless browser and script runner. You can write and run any arbitrary Javascript and run it with PhantomJS. Here's a reference: <a href="http://phantomjs.org/page-automation.html" rel="nofollow">http://phantomjs.org/page-automation.html</a></p>

python selenium firefox phantomjs