[Wtr-general] Checking whether images inside a table are enabled or disabled
vijay
forum-watir-users at openqa.org
Mon Dec 4 01:27:25 EST 2006
Hi Ethan,
Thanks for your reply and sorry for not explaining the issue clearly.
There is a page in our application that contains links like "Instructions", "Step 1. Details", "Step 2. Inventors" etc [These are actually recognized as "TD"s in the 'View -> Source. The table containing this has got an unique id to recognize it]. While entering into our application, all links, other than "Instructions" and "Step 1. Details", should be disabled. This means that one can click on only the above-mentioned two links (Instructions and Step 1. Details). The other links will be grayed out and cannot be clicked on (they will appear as just words with no "hand-pointer" , one which gets displayed when the mouse traverses over a web link). I want to verify this with Watir. I am at a loss about how to do that.
A sample html for an enabled link is :
Active Element: [A], Frame: [Detail], Index: [35]
<A class=tab_enabled href="javascript:formSubmit('summary');">Step 1. Details</A>) ].
A sample html for a disabled link is:
Active Element: [TD], Frame: [Detail], Index: [41]
<TD class=tab_disabled_label background=/iam/images/tab_inactive_bg.png>Step 2. Inventors</TD>
Hope this gives you a clearer picture. Thanks, in advance, for your help.
Vijay
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=5565&messageID=15596#15596
More information about the Wtr-general
mailing list