thallium
Cos I can't get selenium to work...
With chromedriver_binary
For some people chromedriver_binary
works:
from selenium import webdriver
import chromedriver_binary
driver = webdriver.Chrome()
driver.get("http://www.python.org")
assert "Python" in driver.title
But not for me =(
[out]:
---------------------------------------------------------------------------
SessionNotCreatedException Traceback (most recent call last)
<ipython-input-1-329381aca80b> in <module>
2 import chromedriver_binary
3
----> 4 driver = webdriver.Chrome()
5 driver.get("http://www.python.org")
6 assert "Python" in driver.title
SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 78
With pyderman
For some other people pyderman
works:
from selenium import webdriver
import pyderman
path = pyderman.install(browser=pyderman.chrome)
driver = webdriver.Chrome(path)
driver.get("http://www.python.org")
assert "Python" in driver.title
Yes, this worked for me... But I think we can do better.