For

<span style="color: Red; visibility: visible;"
id="MainLogin_PasswordRequired">*</span>

you can use

irb(main):015:0> ie.span(:id, "MainLogin_Password").html
=> "<SPAN id=MainLogin_PasswordRequired title=\"Password is required.\"
style=\"VISIBILITY: visible; COLOR: red\">*</SPAN>"
irb(main):016:0> ie.span(:id, "MainLogin_Password").html =~ /visible/
=> 85
irb(main):017:0> ie.span(:id, "MainLogin_Password").html =~ /hidden/
=> nil

It is similar when span is hidden.

Is this useful for you? Let me know if it is to cryptic, I will add more
detail.
--
Zeljko Filipin
zeljkofilipin.com
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to