+1 for www.w3schools.com Zeljko
2006/1/7, Michael Bolton <[EMAIL PROTECTED]>: > > I'm resending this message because I don't believe that it ever appeared on > the list. If it did, please pardon me. > > ---Michael B. > > A while back, someone wrote: > > I am having the problem with the link of the following form: > > > <a href="some address"><u>Sign in</u></a> > > > And it appears that the both lines below can not find the link to click: > > ie.link(:name, "Sign in").click > > ie.link(:name, "<u>Sign in</u>").click > > And someone else replied: > > The portion of data you are looking at is the "text" of the link, not the > name... > > > so, > > > ie.link( :text, "Sign in" ).click > > > should work. > > To which I TRIED to reply: > > > Which actually raises an interesting point: somewhere in the Watir > documentation is the notion that the easiest way to find the link is by > id--the id= attribute inside the Anchor tag, which apparently is preferred > under current markup language standards, or name--the name= attribute > inside the Anchor tag, which is apparently deprecated. Looking by :text > means that if the text on the link changes, the test breaks. The theory is > that an id attribute will be changed less often than the text. That seems > like a reasonable presumption in many cases. The HTML you use in your > example might be part of a tutorial that you're doing, or it might be part > of an application that you're testing. If the latter, you can ask the > programmer nicely for more testability by asking for id attributes in the > markup. > > I've found www.w3schools.com to be a useful resource for learning about > markup language, browsers, and topics related to Web technology. Do others > have similar places that they'd recommend? > > ---Michael B. > _______________________________________________ > Wtr-general mailing list > [email protected] > http://rubyforge.org/mailman/listinfo/wtr-general > > > _______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
