Jump to content
joeloyzaga

click link within a frame

Recommended Posts

joeloyzaga

this is the code I'm trying to use but it cannot find the link

Local $theFrame = _IEGetObjById($oIE,"iframe--Client-Create")
 
Local $oLinks = _IELinkGetCollection($theFrame)
 
 
MsgBox(0, "Link Count", @extended & " links found")
Local $sMyString = "Client Lead Partner"
Local $oLinks = _IELinkGetCollection($theFrame)
For $oLink In $oLinks
    Local $sLinkText = _IEPropertyGet($oLink, "innertext")
    If StringInStr($sLinkText, $sMyString) Then
        _IEAction($oLink, "click")
        ExitLoop
    EndIf
Next
 
the html is attached

 

post-47107-0-43083900-1424732985_thumb.j

Share this post


Link to post
Share on other sites
joeloyzaga

I don't understand this - what do you mean by cross domain frames?

Share this post


Link to post
Share on other sites
Chimp

did you try with _IELinkClickByText()


small minds discuss people average minds discuss events great minds discuss ideas.... and use AutoIt....

Share this post


Link to post
Share on other sites
Chimp

have a look >here and give it a try ....

also >this infos may interest


small minds discuss people average minds discuss events great minds discuss ideas.... and use AutoIt....

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

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.