title: click at at an arbitrary position in web browser with selenium 2 (Python binding)
body: <p>I am getting confused trying to find a way to <strong>send the left-click in a web browser window in a specific point</strong>. I am using Selenium <code>selenium-2.44.0</code> and Python 2.7. My ultimate goal is to be able to click in certain areas in the window, but for now I just want to make sure I am able to click at all. I thought that clicking on an area where a link is located is a good idea because then I will be able to verify the click did occur (i.e., I will be taken to another html page).</p>
  
  <p>All the prerequisites are met, I am able to start the browser and access and manipulate various web elements. From what I've found in the Help, one is supposed to use <a href="http://selenium-python.readthedocs.org/en/latest/api.html#selenium.webdriver.common.action_chains.ActionChains.move_by_offset" rel="noreferrer">move_by_offset</a> method to move the mouse cursor into a certain direction. However, <strong>when I run the code, the click doesn't occur (or it occurs, but the url link is not clicked and no new page opens)</strong>. I cannot even verify whether the click occurred. When clicking the Logout link, for instance, in a normal browser session, the logout operation occurs.</p>
  
  <pre><code>...
  homeLink = driver.find_element_by_link_text("Home")
  homeLink.click() #clicking on the Home button and mouse cursor should? stay here
  print homeLink.size, homeLink.location
  
  helpLink = driver.find_element_by_link_text("Help")
  print helpLink.size, helpLink.location
  
  action = webdriver.common.action_chains.ActionChains(driver)
  action.move_by_offset(150,0) #move 150 pixels to the right to access Help link
  action.click()
  action.perform()
  </code></pre>
  
  <p>Here is the screenshot of the area in the web page I am working with.</p>
  
  <p><img src="https://i.stack.imgur.com/daJ4N.png" alt="enter image description here"></p>
  
  <p>The size and location of the elements are printed as below:</p>
  
  <pre><code>{'width': 39, 'height': 16} {'y': 47, 'x': 341}
  {'width': 30, 'height': 16} {'y': 47, 'x': 457}
  </code></pre>
  
  <p>The html code behind the page is below, if it's worth looking at.</p>
  
  <pre><code>&lt;a href="/web/"&gt;Home&lt;/a&gt;
  |
  &lt;a href="/web/Account/LogOff"&gt;Logout&lt;/a&gt;
  |
  &lt;a href="#" onclick="HelpFile.open();"&gt;Help&lt;/a&gt;
  </code></pre>
  
  <p>I know that I can access the link by finding an element in many ways, but I am trying to perform a click in a certain location and am using the link element just to verify the click really occurred. </p>
  
  <p><strong>How do perform the click?</strong></p>