Я пытаюсь очистить веб-страницу с селеном в python, и, поскольку я нахожусь на MacOSX, когда веб-драйвер запущен, текст не отображается.
Вот мой код:
chrome_options = Options()
chrome_options.add_argument("--window-size=1920x1080")
chrome_options.add_argument('--user-agent={user_agent}')
driver = webdriver.Chrome(chrome_options=chrome_options,
executable_path=chrome_driver)
driver.get('https://github.com/SeleniumHQ/docker-selenium/issues/560')
![and here is the result](https://i.stack.imgur.com/FpIrV.png)
Я использую эти версии:
chrome=67.0.3396.99
chromedriver=2.40.565386
(45a059dc425e08165f9a10324bd1380cc13ca363),platform=Mac OS X 10.13.5 x86_64)
selenium==3.12.0
python 3.5.5