My code:
driver = webdriver.Chrome()
driver.get(url)
value = driver.find_element_by_xpath("//*[name()='div' and @id='chartContainer']//*[name()= 'svg' and @style= 'position: absolute; z-index: 6;']//*[name()= 'g' and @font-size= '10pt]")
driver.quit()
print(value)
[website url][2]
Error message: *
InvalidSelectorException: Message: invalid selector: Unable to locate an element with the xpath expression //[name()='div' and @id='chartContainer']//[name()= 'svg' and @style= 'position: absolute; z-index: 6;']//[name()= 'g' and @font-size= '10pt] because of the following error: SyntaxError: Failed to execute 'evaluate' on 'Document': The string '//[name()='div' and @id='chartContainer']//[name()= 'svg' and @style= 'position: absolute; z-index: 6;']//[name()= 'g' and @font-size= '10pt]' is not a valid XPath expression. (Session info: chrome=94.0.4606.81)