Forum Discussion
chicks
14 years agoRegular Contributor
Hi Alex,
Very, very sweet ! So I can get a collection of all Links objects on the page (# 12701) , and then use the VerifyWebObject (#9000) to see if they're valid or not. Way cool.
Two quick questions, 1) the sample script for the VerifyWebObject does not pass the expectedWebObject parameter in the call. (Javascript) The method seems to be working fine without it however. What's happening there?
2) I got off into the Microsoft documentation for the Links collection and tried to find how to access the properties of the link object,
i.e. if the link == javascript:void(0) I'm not going to bother verifying it.
if ( Links != "javascript:void(0)" ) {
This actually works, but suppose I wanted to check on the innerText or namePropStr of the link. How can I access that? I tried using getAttribute but did not get it to work.
Thank you very much!
Curt