Hi,

In my application I've to select an option from the list.I tried as below 
but its not selecting the option:

@browser.select_list(:name => "siteName").select "ccfashion"

HTML code:
<select id="site" onchange="$('input[name=switchToSite]').val(true); 
$('#switchSiteShopAdminForm').submit();" name="siteName">
<option value="burton">burton</option>
<option value="burtoneu">burtoneu</option>
<option value="cathkidston">cathkidston</option>
<option value="ccfashion">ccfashion</option>
<option value="chemistdirect">chemistdirect</option>
<option value="cloggs">cloggs</option>
<option value="coggles">coggles</option>
<option value="colorway">colorway</option>
<option value="coopersofstortford">coopersofstortford</option>
<option value="cottontraders">cottontraders</option>
<option value="crewclothing">crewclothing</option>
<option value="cultura">cultura</option>
</select>

Error message :
 "ccfashion" not found in select list 
(Watir::Exception::NoValueFoundException)

Thanks in-advance.

-- 
-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com

--- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to