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 <swam...@gmail.com> 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 <swam...@gmail.com> 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 <enrique.j.ma...@gmail.com>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 <rj41...@gmail.com> 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