b.select(:id, title).include?('Mr') should work, but it might not because
of this https://github.com/watir/watir-classic/issues/43
Let me know of your results.
Jarmo Pertman
-----
IT does really matter - http://itreallymatters.net
On Friday, October 5, 2012 11:42:07 AM UTC+3, Adrian Killens wrote:
>
> How would I check to see if a dropdown list contained a specific value? So
> the test would be something along the lines of:
>
> if *select box contains the value MR*
> * b.select(:id, title).select('Mr')
> *
>
>
--
Before posting, please read http://watir.com/support. In short: search before
you ask, be nice.
[email protected]
http://groups.google.com/group/watir-general
[email protected]