Jump to content
Sign in to follow this  
alfa

Totaly noob

Recommended Posts

alfa

Hello everyone,

I am totaly noob to this. So i have a very basic question.

#include <IE.au3>
$oIE = _IE_Example ("basic")
_IELinkClickByText ($oIE, "user forum")

This is from the help file and works great. But if i add

_IELinkClickByText ($oIE, "User Moderation") it doesnt click that text.

and there is this warning,

--> IE.au3 V2.4-0 Warning from function _IELinkClickByText, $_IEStatus_NoMatch

What am i doing wrong ?

Thanks in advance.

Share this post


Link to post
Share on other sites
Jayson

If you're using the web page provided by that example well there's no "User Moderation" to click on. Posted Image

Share this post


Link to post
Share on other sites
alfa

OK lets say i want it to clik User moderation After it clicks User Forum

Share this post


Link to post
Share on other sites
wakillon

alfa

the next time you want use _IELinkClickByText function and it doesn't work

Do like this

#include <IE.au3>

$oIE = _IE_Example ("basic")
_IELinkClickByText ($oIE, "user forum")
$oLinks = _IELinkGetCollection ( $oIE)
For $oLink In $oLinks
    If StringInStr ( $oLink.innertext, "User Moderation" ) <> 0 Then
        ConsoleWrite ( "->--- Link innertext ->" & $oLink.innertext & '<- ' & @Crlf )
        _IELinkClickByText ( $oIE, "User Moderation " )
        ExitLoop
    EndIf
Next

->--- Link innertext ->User Moderation <-

and you will see exact text ! Posted Image

Edited by wakillon

AutoIt 3.3.14.2 X86 - SciTE 3.6.0WIN 8.1 X64 - Other Example Scripts

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  

×