Hi Brad,

You can use "attribute_value" method to get the value of style attribute.
Then you can use regular expression for comparison.

Regards,
Angrez


On 12/21/06, Brad <[EMAIL PROTECTED]> wrote:

I'm a newbie and have been searching on how to verify if a SPAN element is
visible.  I tried different things without success.  Here is the HTML code
for when visible.

<td><input type="password" id="MainLogin_Password"
name="MainLogin$Password"/><span style="color: Red; visibility: visible;"
title="Password is required." id="MainLogin_PasswordRequired">*</span></td>

Here it is when hidden.

<td><input type="password" id="MainLogin_Password"
name="MainLogin$Password"/><span style="color: Red; visibility: hidden;"
title="Password is required." id="MainLogin_PasswordRequired">*</span></td>

How do you check the 'visibility' parameter of 'style'?

Thanks,
Brad
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=5879&messageID=16440#16440
_______________________________________________
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

Reply via email to