Forum Discussion

TLBVera's avatar
TLBVera
New Contributor
14 years ago

Dynamic Link Collection and Verification

I have an application that has numerous links and I need to make a script that will automatically go to a page and determine what links are on the page (without being pre-scripted with the link data), record all available links on the page (most likely to a text or xml file), then proceed to verify each of those links.  I am not going to be able to hard code any of these links, I need a way to make the script determine the links then follow them, recording it's actions.  The key is that the script needs to be as dynamic as possible, with a minimal amount of maintenance required if and when the links in the product change.



I am able to handle the recording to a file part, but I am stumped as to how to make Test Complete record the link data on the page so that it can be later used to verify those links.  



Any help anyone can offer would be great, and I apologize ahead of time if there is already a thread about this, I was unable to find any.  Also, I'm using VBscript.