title: need to click on a specific location in between an image using selenium
body: <p>I have a scenario where i need to click on a specific location in between an image. On analyzing through Firebug its showing as an image and given id as "Panel_"  </p>
  
  <pre class="lang-java prettyprint-override"><code>Actions builder = new Actions(driver); 
  
  // taking mouse to 00   
  builder.moveByOffset(0,0).build().perform();
  
  // then clicking on the x y cords of the image. This XY i have taken from one tool.    
  builder.moveByOffset(1076,560).click().build().perform();
  </code></pre>
  
  <p>Or </p>
  
  <pre class="lang-java prettyprint-override"><code>WebElement target = driver.findElement(By.id("Panel_"));
  Actions builder = new Actions(driver);    
  int clickAtX = 1076;     
  int clickAtY = 560;     
  builder.moveToElement(target,clickAtX,clickAtY).click().build().perform(); 
  </code></pre>
  
  <p>But neither of the code fragments is helping me. Sometimes it says clicking outside of  page range. 
  I used "Mofiki's Coordinate Finder" tool to get the xy coordinates.</p>
  
  <p><strong>Is there any other way to do this?</strong></p>