Is there a way we can install chrome extensions (.crx) with phantomjs?
My task here is to integrate adblockplus with phantomjs so that I can filter all the ad-urls and report using phantomjs.
Or any other way to integrate the adblockplus extension with phantomjs?
PhantomJS is based on a three-year old WebKit fork (QtWebKit), not Chromium. Therefore you cannot load Chrome extensions in PhantomJS. If you want to use Chrome extensions in an automated way, I suggest to use the ChromeDriver from the Selenium WebDriver project.
On March 8, 2018 the creator of PhantomJS Ariya Hidayat announced that the project will be archived. PhantomJS 2.1.1 is the last stable version, and will remain available on Semaphore. But we recommend switching to Headless Chrome as soon as possible for improved stability and performance.
If you’ve been using PhantomJS for continuous integration, please switch to Headless Chrome. Semaphore provides recent versions of both Chrome and chromedriver preinstalled out of the box.
Semaphore provides recent versions of both Chrome and chromedriver preinstalled out of the box. In April 2017, Vitaliy Slobodin who was at the time the sole maintainer of PhantomJS, announced that he’s stepping down as maintainer, leaving the project effectively abandoned:
PhantomJS is based on a three-year old WebKit fork (QtWebKit), not Chromium. Therefore you cannot load Chrome extensions in PhantomJS.
If you want to use Chrome extensions in an automated way, I suggest to use the ChromeDriver from the Selenium WebDriver project.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With