jarib / celerity

This project is no longer maintained.
http://celerity.rubyforge.org/
GNU General Public License v2.0
206 stars 38 forks source link

SelectList#select_value behaves differently than watir equivalent. #5

Closed lastobelus closed 15 years ago

lastobelus commented 15 years ago

SUMMARY: Celerity selects only by option label/text; watir can select by value

DESCRIPTION: In Watir, SelectList has two methods for selecting: select (selects by text, or label) select_value (selects by value)

in celerity select_value is aliased to select. However, matches_option? checks the passed value only against option labels, not against option values.

EFFECT: Tests written to select dropdown items by value (very typical in multi-language applications for example) will fail.

jarib commented 15 years ago

Implement SelectList#select_value. Closed by 95c292076e1d77d79d35e180905d4d629816331f.

Also updated watirspec to 4c364821.

jarib commented 15 years ago

Thanks for the report.