title: How to click on SVG element in highcharts to download file using Selenium
body: <p>My first question was related to this. In the meantime I have found a less efficient workaround. I'd still like automatically download these files.</p>
  <p>I would like my script to click on the download icon, click on the Download XLS icon that follows of the page below. The green arrow is where I'd like to click.</p>
  <p>The id of the highchart changes every time the page loads. I've tried to fix it it with code sample:</p>
  <pre><code>def unityengine_data():
      driver.get(&quot;https://steamdb.info/tech/Engine/Unity/&quot;)
      wait
      WebDriverWait(driver,30).until(EC.visibility_of_element_located((By.XPATH, &quot;div[contains(@id,'highcharts-')]//*[local-name() = 'svg']/*[name()='g'][6]/*[name()='g']/*[name()='image']&quot;))).click
      WebDriverWait(driver, 30).until(EC.visibility_of_element_located((By.XPATH, &quot;div[contains(@id,'highcharts-')]//**[local-name() = 'div']/*[name()='ul'][6]/*[name()='li'][2]&quot;))).click
      os.rename(&quot;downloaded file path&quot;, &quot;new file path&quot;)
      return &quot;Unity Engine apps data successfully downloaded&quot;
  </code></pre>
  <p>Website image</p>
  <p><img src="https://i.stack.imgur.com/MVdOn.png" alt="Website image" /></p>
  <p>Website after first click</p>
  <p><img src="https://i.stack.imgur.com/1S5pB.png" alt="Website after first click" /></p>
  <p>I hope you can help.</p>