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: [email protected] [mailto:[email protected]] 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 <[email protected]> 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" <[email protected]>
> wrote:
>
>
>
> > #Keyboard Click
> > $ie.send_keys({enter])
>
> > -----Original Message-----
> > From: [email protected]
>
> > [mailto:[email protected]] 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 -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Watir General" group.
To post to this group, send email to [email protected]
Before posting, please read the following guidelines:
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---