Jump to content

_IELinkClickByText when if "text" exists is uncertain


Recommended Posts

I'm trying to use _IELinkClickByText but it is uncertain if the page will have the "text" which will be clicked.

I want something like the following but I'm not sure if it's possible:

if there is a link with the text "..." then

_IELinkClickByText ($oIE, "...")

end if

Thanks for your help.

Link to comment
Share on other sites

Just taking a guess: can't you check for

@Error:7 ($_IEStatus_NoMatch) = No Match

(from the help-file).

Yes, it looks like this should work. I just started learning and hadn't had to use the @Error function yet. Sorry for the silly question.

Thanks again.

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