Integrate chrome extensions with phantomjs

后端 未结 1 1247
南旧
南旧 2021-02-08 04:58

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 r

相关标签:
1条回答
  • 2021-02-08 05:51

    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.

    0 讨论(0)
提交回复
热议问题