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

  • 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

原文链接:How to enable chrome extensions in selenium python

© 版权声明
THE END
喜欢就支持一下吧
点赞6 分享
The future you will certainly thank yourself now desperately.
未来的你一定会感谢现在拼命的自己
评论 抢沙发

请登录后发表评论

    暂无评论内容