I'm trying to extract past one year prices.
Unable to get the XPath for the drop down.
Here's my recent code:
element1 = driver.find_element_by_xpath("""//button[@title="1 year"]""")
element2 = driver.find_element_by_xpath("""//*[@id="chartmenu"]/li/a""")
hoverover = ActionChains(driver).move_to_element(element1).move_to_element(
element2).click().perform()
Where am I wrong here? Please help!