Jump to content

Recommended Posts

Posted

I'm also having a problem with this, although my frames are embedded a lot deeper.

What I would suggest is viewing the source and retrieving the frame name first. Take a look at the _IEFrameGetObjByName () function, and then you might be able to reference that frame when using _IELinkClickByText () function. Not sure if it will work but it's worth at try.

If you can, post the html source here.

Posted (edited)

okey, got no framename but I tried this code

#include <IE.au3>

WinActivate("Internetpage")
$oIE = _IEAttach("Internetpage")
$sMyString = "txt"
$oLink = _IEGetObjById ($oIE, "Main")
    $sLinkText = _IEPropertyGet($oLink, "innerText")
    If StringInStr($sLinkText, $sMyString) Then
        _IEAction($oLink, "click")
    EndIf

Failed

EDIT: Ofcourse I did, should use _IEFRAMEGETCOLLECTION as a replacement for _IEGetObjByID

I'm also having a problem with this, although my frames are embedded a lot deeper.

What I would suggest is viewing the source and retrieving the frame name first. Take a look at the _IEFrameGetObjByName () function, and then you might be able to reference that frame when using _IELinkClickByText () function. Not sure if it will work but it's worth at try.

If you can, post the html source here.

Edited by c4mpi

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
×
×
  • Create New...