I've found that Watir doesn't have as much power or control as I desire. I frequently use the Watir method `.getOLEObject()`. Then you have unfettered access to object and the entire [D]HTML DOM methods.
‹title›test‹/title› ‹td›‹input type="password" id="MainLogin_Password" name="MainLogin$Password"/›‹span style="color: Red; visibility: hidden;" title="Password is required." id="MainLogin_PasswordRequired"›* Required‹/span›‹/td› The method to verify an object's visibility (CSS style-type) could be called like this: ‹code› ... ie = IE.attach( :title, "test" ) mySpan = ie.span( :id, "MainLogin_PasswordRequired" ) mySpan.getOLEObject().style().visibility() ... ‹/code› Sometimes it is useful to access the object directly, as Watir does not wrap everything the DOM offers that one might need. A good reference for what true power one actually has over the DHTML DOM can be found here: http://www.w3schools.com/htmldom/default.asp It seems like there are a fair amount of adverts on the site, but the content is exceptional. Generally, just ignore the bottom of the page :) Let me know if I can be of any more assistance. —›Nathan Christie --------------------------------------------------------------------- Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=5879&messageID=16493#16493 _______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
