Jump to content

Function to read link name in a webpage then click


wjessee
 Share

Recommended Posts

Guest Py7|-|[]/\/

Look in the helpfile to begin. First look for the "Run" command, then the "Send" command, and that should do it. I would write it for you myself, but I am short on time and am doing a report.

Link to comment
Share on other sites

Thanks,

I have already been able to load the webpage and log in and then tab over 15 times to the link and send enter, but I would like it to search for the link name and then click it. Here is the code I have so far. This one waits 2 minutes and does a refresh. I would like to avoid having to specify the number of tabs to the link and call it by name.

-W

Send("#r")

WinWaitActive("Run")

Send("iexplore.exe about:blank{Enter}")

WinWaitActive("about:blank - Microsoft Internet Explorer","Done")

Send("^o")

WinWaitActive("Open")

Send("http://www.domain.com{Enter}")

WinWaitActive("domain.com - Microsoft Internet Explorer","Done")

Send("{TAB 19}")

Send("USERNAME")

Send("{TAB}")

Send("PASSWORD")

Send("{TAB 2}")

Send("{SPACE}")

WinWaitActive("domain.com - Microsoft Internet Explorer","Done")

While 1

Sleep(120000)

Send("{F5}")

WinWaitActive("Microsoft Internet Explorer")

Send("{SPACE}")

Wend

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