I'm attempting to extract a link from a page, because the link itself contains information that I need to write to a log file. I basically just need to extract the link and save it to a variable, then I can then use MIDSTR to extract the information that I need from the link, as it always appears in the exact same position in the link. In this instance, it's an arbitrary folder number that the link text itself does not list, so I can't find a way to extract it via an Extract Tag option, because it only extracts the text of the link, rather than the link itself.
One workaround that I have been using has been to do the following:
Code: Select all
Let>FolderName={"FrontSt"}
Press CTRL
Send Character/Text>f
Release CTRL
Wait>1
Send Character/Text>%FolderName%
Wait>0.2
Press TAB
Wait>0.2
Send Character/Text>%SPACE%
Wait>0.2
Press TAB
Wait>0.2
Send Character/Text>%SPACE%
Wait>0.2
Press ENTER
Wait>1.5
Press ESC
Wait>0.5
Press TAB
Wait>0.2
Press SHIFT
Press F10
Release SHIFT
Wait>0.2
Send Character/Text>t
Wait>0.7
WaitClipBoard
GetClipBoard>FullLinkHREF
MidStr>FullLinkHREF,31,6,FolderNumber
The problem is that my method can be unreliable, especially when the same exact text as the "FolderName" shows up elsewhere on the page. Does anyone know of another way to grab ONLY the HREF link via an Extract Tag function? Any help would be appreciated. Thanks so much for your help!
~Len Singbiel