Skip to content
Advertisement

How to set options for chromium Edge() in Selenium?

I have been following tutorials, and I came up on Firefox, and using Options(), I could set headless mode while defining browser (browser = Firefox(options=opts)), but for Firefox only. I downloaded the driver for the new chromium Edge, but I cannot seem to set the options= keyword in Edge(). Can anyone tell me how do I set the options while defining the browser?

JavaScript

It seems there is no options keyword, and I get an error:

JavaScript

Any help will be appreciated. Thanks in advance!

Advertisement

Answer

For Edge Chromium you need to install msedge-selenium-tools package for python and then you can initialize the driver

JavaScript
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement