score:1

options = Options()
driver = webdriver.Chrome(service=Service(ChromeDriverManager().install()),options=options)
driver.maximize_window()
wait=WebDriverWait(driver,10)
driver.get("https://steamdb.info/tech/Engine/Unity/")
wait.until(EC.element_to_be_clickable((By.CSS_SELECTOR,"svg > g.highcharts-exporting-group > g > image"))).click()
wait.until(EC.element_to_be_clickable((By.CSS_SELECTOR,"ul.highcharts-menu > li:nth-child(2)"))).click()

If you want to use Options in conjunction with Service you should do it like so I used Chromedriver manager to make sure the binaries are correctly set up. From there you need to wait for the element to be clickable using Webdriver waits and then click on those elements.

  1. Implicit waits are for page loads not element finding so use explicits.

  2. Chromeoptions is depreciated along with driver.find_element_by_*.

  3. Incorrect xpaths selected.

Import:

from selenium import webdriver
from selenium.webdriver.chrome.service import Service
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait 
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.chrome.options import Options
from webdriver_manager.chrome import ChromeDriverManager

Related Articles