Cain, Mark
Wed, 18 Jul 2007 06:42:58 -0700
You could have done this also: ie.select_list(:name, "productId").select(/Catalyst 6500/i)
--Mark
________________________________
From: [EMAIL PROTECTED] [EMAIL PROTECTED] On Behalf Of Željko Filipin
Sent: Wednesday, July 18, 2007 2:34 AM
To: wtr-general@rubyforge.org
Subject: Re: [Wtr-general] Unable to select an item using select_list
On 7/18/07, rvishnubhotla <[EMAIL PROTECTED]> wrote:
<option
value="16"> Catalyst
6500</option>
Hi Radha,
There is ten spaces before "Catalyst 6500", that is why ie.select_list(:name,
"productId").select("Catalyst 6500") did not work.
I thought this would work, but it does not.
ie.select_list(:name, "productId").select(" Catalyst 6500")
Fortunately, both of this work.
ie.select_list(:name, "productId").select(/Catalyst 6500/)
ie.select_list(:name,
"productId").select("\240\240\240\240\240\240\240\240\240\240Catalyst 6500")
Zeljko
--
ZeljkoFilipin.com
_______________________________________________ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general