Запуск Selenium WebDriver с использованием Python с расширениями (файлы .crx)
Код: Выделить всё
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
chop = webdriver.ChromeOptions()
chop.add_extension('Adblock-Plus_v1.4.1.crx')
driver = webdriver.Chrome(chrome_options = chop)
Код: Выделить всё
from selenium.webdriver.chrome.options import Options
Код: Выделить всё
Traceback (most recent call last):
File "
", line 1, in
from selenium.webdriver.chrome.options import Options
ImportError: No module named options
Подробнее здесь: https://stackoverflow.com/questions/387 ... mporterror
Мобильная версия