[Wtr-general] Unable to select an item using select_list
Željko Filipin
zeljko.filipin at gmail.com
Wed Jul 18 05:34:22 EDT 2007
On 7/18/07, rvishnubhotla <forum-watir-users at openqa.org> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/wtr-general/attachments/20070718/68dfc574/attachment.html
More information about the Wtr-general
mailing list