title: How to get the position of an element relative to canvas element using selenium in python?
body: <p>i want to know the position of an element relative to the canvas element. </p>
  
  <p>i initially create a point at x and y values being -50 and -50
  like below using selenium webdriver</p>
  
  <pre><code>canvas = driver.find_element_by_xpath("//div[@class='canvas_holder']")
  ActionChains(driver).move_to_element(canvas).move_by_offset(-50, -50).click().perform()
  </code></pre>
  
  <p>The above creates a point. now i have to check if the point is created at -50 and -50 how can i do it.</p>
  
  <p>could anyone provide me some ideas. thanks.</p>
  
  <p><a href="https://i.stack.imgur.com/FmDVe.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/FmDVe.png" alt="enter image description here"></a></p>