[Wtr-general] Checking whether images inside a table are enabled or disabled
Ethan Jewett
esjewett at gmail.com
Fri Dec 1 14:48:17 EST 2006
Vijay,
It is hard to tell what, exactly, you are looking for without an
example of what an "enabled" object looks like *and* what a "disabled"
object looks like.
However, it looks to me like Watir 1.5.1.1127 supports the following
methods for every object on a web-page:
exists?
enabled?
attribute_value(attribute_name)
I think at least one of these can be used to solve your problem.
Ethan
On 12/1/06, vijay <forum-watir-users at openqa.org> wrote:
> Hello people,
>
> I have got to check whether images present in a table are enabled or disabled. I am not even very sure whether they are images. Their "html content: is like the following:
>
> <td class="tab_enabled"><img class="tab" src="/iam/images/tab_left_inactive.png"></td>
> <td class="tab_enabled" background="/iam/images/tab_inactive_bg.png"></td><td class="tab_enabled_label" background="/iam/images/tab_inactive_bg.png" class="tab_enabled">
> <a class="tab_enabled" href="javascript:formSubmit('summary');">Step 1. Details</a>
> </td>
>
> Is there a way that I can check whether this image (or link or label) is enabled or not?
>
> Thanks, in advance,
> Vijay
> ---------------------------------------------------------------------
> Posted via Jive Forums
> http://forums.openqa.org/thread.jspa?threadID=5565&messageID=15503#15503
> _______________________________________________
> Wtr-general mailing list
> Wtr-general at rubyforge.org
> http://rubyforge.org/mailman/listinfo/wtr-general
>
More information about the Wtr-general
mailing list