title: How can I get AppleScript to click a button or link on a webpage?
body: <p>I am trying to get an Apple Script to click on an item within webpage. This script  below works somewhat, I can get it to click different safari tabs or drop down menus, but I cannot get it to click an item within webpage.</p>
  
  <p>In this example, I am trying to get the script to click the "Im feeling Lucky" button from google.. it all works except the click for some reason:</p>
  
  <pre><code>tell application "Safari" to activate
  tell application "System Events"
  tell process "Safari"
      open location "http://google.com"
      click at {655, 382} -- {from left, from top}
  end tell
  end tell
  </code></pre>
  
  <p>The location of the button will likely be different depending on screen size, but anyone have any idea why this is not working?</p>