Re: [wtr-general] Re: Alert window access issue

2012-10-26 Thread uday swami
You can also check my related question about this issue on
http://stackoverflow.com/questions/12710287/how-to-enter-password-in-a-popup-using-watir

On Fri, Oct 26, 2012 at 6:21 PM, uday swami  wrote:

> I would like to add that the method in alert.rb says
> @alert.send_keys(value) I tried changing that too but no result
>
>
> On Fri, Oct 26, 2012 at 6:02 PM, uday swami  wrote:
>
>> I tried that too but it won't work. See when I try to do same with the
>> main browser window it works it's just won't work with that alert window
>>
>>
>> On Fri, Oct 26, 2012 at 5:51 PM, enroxorz wrote:
>>
>>> 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  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.
>>>>>
>>>>> watir-...@googlegroups.com
>>>>> http://groups.google.com/**group/watir-general<http://groups.google.com/group/watir-general>
>>>>> watir-genera...@**googlegroups.com
>>>>>
>>>>
>>>>  --
>>> 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
>>>
>>
>>
>

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


Re: [wtr-general] Re: Alert window access issue

2012-10-26 Thread uday swami
I would like to add that the method in alert.rb says
@alert.send_keys(value) I tried changing that too but no result

On Fri, Oct 26, 2012 at 6:02 PM, uday swami  wrote:

> I tried that too but it won't work. See when I try to do same with the
> main browser window it works it's just won't work with that alert window
>
>
> On Fri, Oct 26, 2012 at 5:51 PM, enroxorz wrote:
>
>> 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  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.
>>>>
>>>> watir-...@googlegroups.com
>>>> http://groups.google.com/**group/watir-general<http://groups.google.com/group/watir-general>
>>>> watir-genera...@**googlegroups.com
>>>>
>>>
>>>  --
>> 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
>>
>
>

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


Re: [wtr-general] Re: Alert window access issue

2012-10-26 Thread uday swami
I tried that too but it won't work. See when I try to do same with the main
browser window it works it's just won't work with that alert window

On Fri, Oct 26, 2012 at 5:51 PM, enroxorz  wrote:

> 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  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.
>>>
>>> watir-...@googlegroups.com
>>> http://groups.google.com/**group/watir-general<http://groups.google.com/group/watir-general>
>>> watir-genera...@**googlegroups.com
>>>
>>
>>  --
> 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
>

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


Re: [wtr-general] Re: Alert window access issue

2012-10-26 Thread uday swami
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  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.
>
> watir-general@googlegroups.com
> http://groups.google.com/group/watir-general
> watir-general+unsubscr...@googlegroups.com
>

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


[wtr-general] Alert window access issue

2012-10-17 Thread uday swami
I have to automate one web-site settings in that I have to change settings 
and when I save there comes a pop-up(alert window) which is basically needs 
username and password for settings to be saved.
I could access that alert window with alert method like "browser.alert.set 
"username" " this sets first text field but for password I couldn't find 
any method I tried "browser.alert.set :tab" which will send tab key as in 
alert it basically uses send_keys method but it still wasn't working it 
would print :tab in username box.
This could get fixed if I know why send_keys :tab doesn't have same effect 
as it has on main browser window.
I'm using watir on linux-ubuntu

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


[wtr-general] How to do digest authentication with watir

2012-10-04 Thread uday swami
I'm doing some setting change on some site then it asks for authentication 
(username password ) text fields and cancel & Ok buttons.
I'm not being able to set those text fields.
I tried browser.window,send_keys,adding username:password before url
Also tried autoit but it didn't recognize that method and gave no method 
error
Please help

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