It looks like this and I'd live to get an array of 1, 2, 3 rather than 
Thing One, Thing Two, Thing Three.

<select name="things" size="1" onchange="#" id="things" class="test">
<option value="1">Thing One</option>
<option value="2">Thing Two</option>
<option value="3">Thing Three</option>
</select>

Hope that makes sense.

On Thursday, 22 November 2012 00:37:33 UTC, Oscar.Rieken wrote:
>
> what does the html of the select list look like 
>
>
> On Wed, Nov 21, 2012 at 5:14 PM, Adrian Killens 
> <[email protected]<javascript:>
> > wrote:
>
>> I can do it with options like this:
>>
>> selectList = b.select_list(:id, 'blah')
>>   selectContent = selectList.values.map(&:text)
>>   b.select(:id, 'blah').select_value(selectContent[1])
>>
>>
>> But was wondering how I could do the same thing using the value rather 
>> than just the option?
>>
>> Cheers
>> Aidy
>>
>> -- 
>> Before posting, please read http://watir.com/support. In short: search 
>> before you ask, be nice.
>>  
>> [email protected] <javascript:>
>> http://groups.google.com/group/watir-general
>> [email protected] <javascript:>
>>
>
>

-- 
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]

Reply via email to