I have an SVG object with a few rectangle elements. Using geckodriver, I am trying to click on one of the main SVG object. However wit
SVG
geckodriver
how about: //div[@id='avg_score_chart']//*[local-name()='svg']/*[*[local-name()='path']]
//div[@id='avg_score_chart']//*[local-name()='svg']/*[*[local-name()='path']]
where you find any element with a 'path' element inside an 'svg' element inside a 'div' element with id 'avg_score_chart'.
Edit: placed the xpath in a code block