Re: [wtr-general] How to select a item from the dropbox

2010-08-09 Thread Padma Reddy
Try this:

browser.select_list(:id, '<>').select_value('<>')

get Id and value from ur source code


On Sun, Aug 8, 2010 at 8:45 PM, sudhir  wrote:

> Hi All,
> I am trying to select an item from dropbox but could not.
> Can you provide details regarding that
>
> Thanks
>
> --
> Before posting, please read http://watir.com/support. In short: search
> before you ask, be nice.
>
> You received this message because you are subscribed to
> http://groups.google.com/group/watir-general
> To post: watir-general@googlegroups.com
> To unsubscribe: 
> watir-general+unsubscr...@googlegroups.com
>



-- 
Padma:)

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

You received this message because you are subscribed to 
http://groups.google.com/group/watir-general
To post: watir-general@googlegroups.com
To unsubscribe: watir-general+unsubscr...@googlegroups.com


Re: [wtr-general] How to select a item from the dropbox

2010-08-09 Thread Željko Filipin
On Sun, Aug 8, 2010 at 5:15 PM, sudhir  wrote:
> I am trying to select an item from dropbox but could not.

Take a look:

http://wiki.openqa.org/display/WTR/Selection+Boxes

Željko
--
watir.com - community manager
watirpodcast.com - host
testingpodcast.com - audio podcasts on software testing. all of them
vidipodkast.com - pričamo o hardveru, softveru i časopisu Vidi

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

You received this message because you are subscribed to 
http://groups.google.com/group/watir-general
To post: watir-general@googlegroups.com
To unsubscribe: watir-general+unsubscr...@googlegroups.com


Re: [wtr-general] How to select a item from the dropbox

2010-08-09 Thread arihan sinha
in my Ruby+Watir framework which I've designed , I've created a testbase.rb
where I've put the function like below and call this wherever I need it.

def select_from_select_list(title,name,value)
startAction title, "Select from the select list with name'" + name + "' and
value '" + value + "'"
 if no_fatal_error then
begin
$ie.select_list(:name,name).select(value)
logPass
rescue => e
handleFail e
end
end
end



On Mon, Aug 9, 2010 at 9:00 AM, Padma Reddy  wrote:

> Try this:
>
> browser.select_list(:id, '<>').select_value('<>')
>
> get Id and value from ur source code
>
>
> On Sun, Aug 8, 2010 at 8:45 PM, sudhir  wrote:
>
>> Hi All,
>> I am trying to select an item from dropbox but could not.
>> Can you provide details regarding that
>>
>> Thanks
>>
>> --
>> Before posting, please read http://watir.com/support. In short: search
>> before you ask, be nice.
>>
>> You received this message because you are subscribed to
>> http://groups.google.com/group/watir-general
>> To post: watir-general@googlegroups.com
>> To unsubscribe: 
>> watir-general+unsubscr...@googlegroups.com
>>
>
>
>
> --
> Padma:)
>
> --
> Before posting, please read http://watir.com/support. In short: search
> before you ask, be nice.
>
> You received this message because you are subscribed to
> http://groups.google.com/group/watir-general
> To post: watir-general@googlegroups.com
> To unsubscribe: 
> watir-general+unsubscr...@googlegroups.com
>

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

You received this message because you are subscribed to 
http://groups.google.com/group/watir-general
To post: watir-general@googlegroups.com
To unsubscribe: watir-general+unsubscr...@googlegroups.com