What version of WATIR are you using. Correct me if I am wrong, but if you
are using pre-3.0 Watir, send_key "{TAB}" should work...
On Friday, October 26, 2012 6:35:38 AM UTC-4, uday swami wrote:
>
> browser.alert.set "username"
> browser.alert.send_key :tab
> browser.alert.set "my_password"
> browser.alert.ok
> when I did this it just sets same text_field with first "username",then
> ":tab" and then password so at last that text field has password and curser
> doesn't go to next field either. It considers :tab as text and not special
> key. the alert method in its apis uses send_keys in its "set" method so I
> also tried to send :tab from there but same result.
>
> On Thu, Oct 25, 2012 at 11:00 PM, RJ <[email protected] <javascript:>>wrote:
>
>> you said 'I tried "
>> browser.alert.set :tab
>> but I think you meant, you tried
>> browser.alert.send_keys :tab
>>
>> right? are you asking about browser.send_keys or browser.alert.set?
>>
>>
>> what happens when you do the following?
>>
>> browser.alert.set "username"
>> browser.alert.send_key :tab
>> browser.alert.set "my_password"
>> browser.alert.ok
>>
>>
>>
>> --
>> 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]