Skip to content

No module named 'selenium.webdriver.common.options' #2155

Answered by mdmintz
Kamran-ov asked this question in Q&A
Discussion options

You must be logged in to vote

There's probably multiple environments on your system and you're not using the correct one. You can verify the import works by typing the following in a python prompt:

from selenium.webdriver.common.options import ArgOptions

It may be that you need to call your script with python3 instead of python, or something like that to make sure you're using the correct environment. That import is used in several places in selenium:

https://github.com/search?q=repo%3ASeleniumHQ%2Fselenium%20ArgOptions&type=code

Maybe use both pip install seleniumbase and pip3 install seleniumbase to make sure that you have seleniumbase and selenium installed.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Kamran-ov
Comment options

@mdmintz
Comment options

Answer selected by mdmintz
# for free to join this conversation on GitHub. Already have an account? # to comment
Category
Q&A
Labels
None yet
2 participants