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.
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:
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
The location of the button will likely be different depending on screen size, but anyone have any idea why this is not working?