Jump to content

3 different frames and IEclickbytxt


 Share

Recommended Posts

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.

Link to comment
Share on other sites

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
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...