yes, that should definitely be there. Can you add it to the tracker so it
doesnt get forgotten?
Paul
----- Original Message -----
From: "Boyt, Darrel" <[EMAIL PROTECTED]>
Date: Wednesday, August 24, 2005 8:26 am
Subject: [Wtr-general] How can I access an object a Label points to?
> I would like to access a Label by its text. I know what the text is
> supposed to be, but I don't know what its index, id, or "for" (the
> indexof the object the label's for) is.
>
> For example, here's what I have to do now to select an option in a
> select_list when I know the select_list's label, but not its id:
>
> ie.labels.each do |l|
> if l.text.include?("the label's text")
> ie.select_list(:id, l.for).select("option text")
> break
> end
> end
>
> What I'd like to be able to do is something like this:
>
> ie.select_list(:id, ie.label(:text, "the label's
> text").for).select("option text")
>
> Any possibility of this type of functionality being made available
> sometime?
>
> Thanks,
>
> Darrel Boyt
> Systems Analyst
> Anteon Corporation
> Montgomery, Alabama
>
> _______________________________________________
> 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