View Full Version : click java link in iframe

03-16-2012, 05:30 PM
Hi all,

Very new to this but I am trying to automate some webdownloads I need to do daily.

I have a link I am trying to click via applescript do javascript

I can return the frames html by doing

tell application "Safari"
do JavaScript
in document 1
end tell

the html returned contains the link link I want to click/fire
<span id="SWGrdAccSearch_ctl06_lblAsterix">&nbsp;</span>

<a onclick="javascript:return getDefaultAccount('John
Doe','0890','0','0');" id="SWGrdAccSearch_ctl06_lnkAccount"

how can I get his link to launch/fire?

Any and all help deeply appreciated.