You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
selenium.webdriver.common.options is missing #7379
Import "selenium.webdriver.common.options" could not be resolved
Incompatible types in assignment (expression has type "Options", variable has type "ArgOptions")
Incompatible return value type (got "Options", expected "ArgOptions") [return-value]
Are you using Selenium 3 or Selenium 4? If it is Selenium 4, you should upgrade to 4.1.2 (released yesterday). It comes with its own type annotations, and type checkers should use those instead of what's in typeshed.
Are you using Selenium 3 or Selenium 4? If it is Selenium 4, you should upgrade to 4.1.2 (released yesterday). It comes with its own type annotations, and type checkers should use those instead of what's in typeshed.
Thanks for the hint! I was using some version Selenium 4 (installed 3-4 days ago), and due to some typing error that I don't remember, I installed types-selenium without paying attention to the version number (3.141.7). I then updated to selenium==4.1.2 today. I guess that version (and maybe the previous one, not sure) conflict with the older types-selenium, uninstalling which solves the issue. Thanks again!
Activity
Akuli commentedon Feb 25, 2022
Are you using Selenium 3 or Selenium 4? If it is Selenium 4, you should upgrade to 4.1.2 (released yesterday). It comes with its own type annotations, and type checkers should use those instead of what's in typeshed.
bersbersbers commentedon Feb 25, 2022
Thanks for the hint! I was using some version Selenium 4 (installed 3-4 days ago), and due to some typing error that I don't remember, I installed
types-seleniumwithout paying attention to the version number (3.141.7). I then updated toselenium==4.1.2today. I guess that version (and maybe the previous one, not sure) conflict with the oldertypes-selenium, uninstalling which solves the issue. Thanks again!