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

  1. Install selenium by typing pip install selenium in the command prompt or terminal
  2. write the following code

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

--

--

Usman Khan Niazi
Usman Khan Niazi

No responses yet