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 index
of 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

Reply via email to