Jump to content

click link within a frame


Recommended Posts

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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...