Sign in to follow this  
Followers 0
c4mpi

3 different frames and IEclickbytxt

4 posts in this topic

Hi, I need to use IEclickbytxt on a internet page where there is 3 different frames. ( I have no framenames )

Share this post


Link to post
Share on other sites



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.

Share this post


Link to post
Share on other sites

#3 ·  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

Share this post


Link to post
Share on other sites

It will probably depend on how the page is written itself...if you put the source for the webpage on a reply, I may be able to figure something out.

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
Sign in to follow this  
Followers 0