Trying to use Selenium to click a DIV and return the resulting link that should appear afterwards
In Python I can get chrome to open but it eventually fails to get url with error Can not connect to the Service D:Softwarechromedriver_126-win64chrome.exe
for for what’s worth here’s my code
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.chrome.service import Service
ChromeDriverPath64 = "D:\Software\chromedriver_126-win64\chrome.exe"
s = Service(ChromeDriverPath64)
options = webdriver.ChromeOptions()
# keep it simple for now
options.page_load_strategy = 'normal'
try:
driver = webdriver.Chrome(service=s, options=options)
driver.get("https://www.python.org")
print(driver.title)
except Exception as e:
print(e)
The Chromedriver matches Chrome version
Can any one see what I’m ding wrong