Sign in to follow this  
Followers 0
blank

clicking on javascripted link

3 posts in this topic

i was trying to run something with a variation of these two:

_IELinkClickByIndex($oie, "testlink", 1)

$isc = _IEGetObjByName($oie, "testlink")

_IEAction($isc, "click")

_______________________________________________________

$Source = _InetGetSource($oie)

$LinksArray = _StringBetween($Source, "<a href=", ">")

_ArrayDisplay($LinksArray)

The sourse snipplet for the link is this:

<a href="java script: parent.doURL('0987312409857230498709872346AF898724',null,'get',false,'yes', false)">testlink</a>

i'm not getting anything returned however. any ideas on how i might simulate a "click" on this link?

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Sometimes it's enough to navigate this script:

$sURL = "java script:parent.doURL('0987312409857230498709872346AF898724',null,'get',false,'yes', false)"
_IENavigate($oIE, $sURL)
_IELoadWait($oIE)

lol ok for some reason the post makes it "java script" so relate it as "java<nospace>script" for that matter.

Edited by Authenticity

Share this post


Link to post
Share on other sites

If this were horseshoes...

See _IELinkClickByText

Dale


Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl

MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model

Automate input type=file (Related)

Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded  Better Better?

IE.au3 issues with Vista - Workarounds

SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead?

Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0