Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Integrate chrome extensions with phantomjs

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?

like image 231
Devaroop Avatar asked May 12 '14 07:05

Devaroop


People also ask

Is it possible to use Chrome extensions in 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.

What is the latest version of PhantomJS?

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.

Should I switch from PhantomJS to headless chrome?

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.

What happened to Semaphore PhantomJS?

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:


1 Answers

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.

like image 106
Rob W Avatar answered Sep 17 '22 03:09

Rob W