Watir General Group;

 

I am relatively new to Watir and have run up against a problem I am unable to solve. I need to enumerate all the span tags on a page, find one with a custom attribute, and get access to the control inside that span tag.

 

I have seen 1 reference to this issue (http://rubyforge.org/pipermail/wtr-general/2006-February/004969.html ) and I have no idea if this is correct, or how to implement the solution presented.

 

What I want to do is hopefully fairly simple. Here is a snippet of HTML code from my page. I want to get the checkbox object that is wrapped inside the span tag with the Custom Attribute 1015. This is a dynamically created table, the ID’s for the checkboxes are never the same, the order is never the same. All I have to go on is the custom attribute.

 

<td align="Center" valign="Top">

<span AlertID="1014"><input id="ctlSubscriptionList__ctl2_chkEnabled" type="checkbox" name="ctlSubscriptionList:_ctl2:chkEnabled" checked="checked" /></span>

</td>

...

<td align="Center" valign="Top">

<span AlertID="1015"><input id="ctlSubscriptionList__ctl3_chkEnabled" type="checkbox" name="ctlSubscriptionList:_ctl2:chkEnabled" checked="checked" /></span>

</td>

 

 

Any help would be .. well .. helpful.

 

Thank you,

Michael Cowan

_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to