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 <rj412....@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-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