wkeeling / selenium-wire

Extends Selenium's Python bindings to give you the ability to inspect requests made by the browser.
MIT License
1.9k stars 251 forks source link

ImportError: cannot import name 'EdgeOptions' from 'selenium.webdriver' #605

Closed Meango closed 1 year ago

Meango commented 1 year ago

I use selenimu-wire on my m1 macbook pro with python 3.10.4, but I can't import the package.

image
wkeeling commented 1 year ago

Thanks for raising this. What version of selenium are you running?

dcnadler commented 1 year ago

I get the same error with selenium==3.141.0 Looks like EdgeOptions is not available in selenium < 4.0

Meango commented 1 year ago

Thanks for raising this. What version of selenium are you running?

My environments are as follow: Python 3.10.4 selenium 3.141.0 selenium-wire 5.0.0

wkeeling commented 1 year ago

Selenium Wire has now been updated (v5.1.0) to ensure Selenium>=4.0.0 is installed.

Meango commented 1 year ago

Selenium Wire has now been updated (v5.1.0) to ensure Selenium>=4.0.0 is installed.

Thanks!