DEV Community

Usman Khan Niazi
Usman Khan Niazi

Posted on

How to enable chrome extensions in selenium python

In this tutorial , I'm going to show you how you can load chrome extensions when you run selenium

  • Install selenium by typing pip install selenium in the command prompt or terminal

  • write the following code
    image

  • Here pathtocrx.crx is the path to where your chrome extension is stored and pathtochromewebdriver.exe is the path to your downloaded chrome web driver. Change both of them to your own paths. 

That's all that you need to do. Now you have the mentioned chrome extensions enables and added by default

Top comments (0)