Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

clicking onclick link with in a frame

8 views
Skip to first unread message

hds17

unread,
Mar 16, 2012, 11:21:38 AM3/16/12
to
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

"document.getElementById('iframesearch').contentDocument.getElementById('frmAccountList').innerHTML"
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"
href="javascript:__doPostBack('SWGrdAccSearch
$ctl06$lnkAccount','')">123456</a>


how can I get his link to launch/fire?


Any and all help deeply appreciated.
0 new messages