joeloyzaga

click link within a frame

7 posts in this topic

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



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

Share this post


Link to post
Share on other sites

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

clicklinkbytext does not find the link

Share this post


Link to post
Share on other sites

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