Technical support and scripting issues
Moderators: Dorian (MJT support), JRL
-
putmann
- Junior Coder
- Posts: 24
- Joined: Mon Aug 20, 2007 1:15 am
- Location: Queens,NY
Post
by putmann » Thu Jul 10, 2008 5:00 pm
I am attempting to search for a link on webpage that is in a different location/position on the webapage daily. The link has different numbers assigned daily, but the Description is always the same. For example:
Link Description
12125666-6602 IPIHDXKLF.txt
Code: Select all
I am using this script to search for the Description:
Press Alt
Send Character/Text>E
Release Alt
Send Character/Text>F
Wait>1
Send Character/Text>IPIHDXKLF.txt
MS is locating IPIHDXKLF.txt, but how do I get MS to click on the link if it is in a different location/position daily?
-
Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
-
Contact:
Post
by Marcus Tettmar » Mon Jul 14, 2008 7:34 am
You don't say which web browser you're using. In IE once the Find box has located the text, that text is highlighted and you can press Escape to close the find box. If you then press the Tab key, and then Enter that link will be "clicked". So:
//close the find box
Press Esc
//focus the link
Press Tab
//Click it
Press Enter
That seems to work for me.
With firefox, just press Esc to clear the find bar, and then Enter to "click" the link:
Press Esc
Press Enter