score:1

The elements are inside svg tag, you would have to change your locater here.

//*[local-name() = 'svg']/*[local-name()='g'][6]/*/*

This represent months with their value. you can store everything in a list and can print them.

Something like this :

months = driver.find_elements(By.XPATH, "//*[local-name() = 'svg']/*[local-name()='g'][6]/*/*")
for date in months:
    print(date.text)

Yes when you hover over to a particular month you can use the below xpath

//*[local-name() = 'svg']/*[local-name()='g' and @class='highcharts-tooltip']/*[local-name()='text']

month_value = driver.find_element(By.XPATH, "//*[local-name() = 'svg']/*[local-name()='g' and @class='highcharts-tooltip']/*[local-name()='text']")
print(month_value.text)

to print the respective value.

for hovering to a particular month you can use the below code :

tooltip = driver.find_element(By.XPATH, "//*[local-name() = 'svg']/*[local-name()='g'][8]/*[local-name()='text']")
ActionChains(driver).move_to_element(tooltip).perform()

Related Query

More Query from same tag