On 6/26/06, Michael Cowan <[EMAIL PROTECTED]> wrote:
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>


I have two suggestions. Using the latest from 1.5.:

  ie.span(:html, /AlertID="1014"/)

or

  ie.spans.detect {|s| s.ole_object.attributes('AlertID').value == '1014'}

Bret
_______________________________________________
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to