Well that is another problem Because the script I have a JavaAlert window is appearing and I dont know how to attach to it since it is not an IE window. I can just hit enter on the keyboard and the window goes away but I can not get my script to identify the window. so another questions how to identify an non IE window? How can you see all windows available? Thank you Louie
On Jan 16, 10:33 am, "Darin Duphorn" <dduph...@redbrickhealth.com> wrote: > You would just replace the $ie. With whatever you called your browser > property. > > The $ie in my test case is referring to the following > > #Set ie to current browser > $ie = Watir::IE.attach("url","www.somthing.com") > > > > -----Original Message----- > From: watir-general@googlegroups.com [mailto:watir-gene...@googlegroups.com] > On Behalf Of Louie > Sent: Friday, January 16, 2009 9:20 AM > To: Watir General > Subject: [wtr-general] Re: Need to automate pressing of Enter key > > How would you send an enter key if the window that is open is not a ie > window? > > On Jan 16, 10:11 am, Natasha <itsn...@yahoo.co.uk> wrote: > > Thanks Darin. > > > Just to sum up, the following statement worked: > > > $ie.send_keys("{ENTER}") > > > Thanks, > > Natasha > > > On Jan 16, 2:46 pm, "Darin Duphorn" <dduph...@redbrickhealth.com> > > wrote: > > > > #Keyboard Click > > > $ie.send_keys({enter]) > > > > -----Original Message----- > > > From: watir-general@googlegroups.com > > > > [mailto:watir-gene...@googlegroups.com] On Behalf Of Natasha > > > Sent: Friday, January 16, 2009 8:45 AM > > > To: Watir General > > > Subject: [wtr-general] Need to automate pressing of Enterkey > > > > Hello All, > > > > I need to automate pressing the Enterkeyfrom the keyboard. Is there > > > anykeypressfunction that Watir supports? > > > > Please could you provide the details. > > > > Thanks in advance, > > > Natasha- Hide quoted text - > > > - Show quoted text -- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~----------~----~----~----~------~----~------~--~---