Quantcast
Channel: Active questions tagged selenium - Stack Overflow
Viewing all articles
Browse latest Browse all 98269

selenium webdriver importing Options giving me an ImportError

$
0
0

Link to the original code I'm trying to implement into my code.

Running Selenium WebDriver using Python with extensions (.crx files)

from selenium import webdriverfrom selenium.webdriver.chrome.options import Optionschop = webdriver.ChromeOptions()chop.add_extension('Adblock-Plus_v1.4.1.crx')driver = webdriver.Chrome(chrome_options = chop)

I tried incorporating the code, but the 2nd line,

from selenium.webdriver.chrome.options import Options

is tossing out an error

Traceback (most recent call last):  File "<pyshell#6>", line 1, in <module>    from selenium.webdriver.chrome.options import OptionsImportError: No module named options

I updated selenium, updated chromedriver, and this problem doesn't go away. I checked stackoverflow and nothing seems to be related to my problem where the module is found.


Viewing all articles
Browse latest Browse all 98269

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>