well on a PC you can do that with either AutoIt, or Rautomation. Not so sure with the mac (although someone else may be able to help)
I'm learning to be a mac user after years with windows systems, but when it comes to running watir I just do it through VM's hosted on the mac for a number of reasons, so while I technically run watir or watir- webdriver on a mac, I'm not actually running it on OSX On Jan 6, 10:57 am, Joe Fleck <[email protected]> wrote: > Chuck, > > Thank you this was very helpful. I do have VMWare fusion so I will > begin using it to run my scripts. I usually have this problem when > developing my scripts. I development them in Netbeams (6.0) and run > them from there. When you wrote this 'You > may need to set focus to the browser window first.' did you mean > manually or is there a method that will do this? > > Thank you, > Joe > > On Fri, Jan 6, 2012 at 12:45 PM, Chuck van der Linden <[email protected]> > wrote: > > > > > > > > > On Jan 6, 6:51 am, Joe Fleck <[email protected]> wrote: > >> Hi, > > >> I have found it does work but won't if the browser is not in my > >> admitted focus. I am using a MAC BookPro. Has anyone else > >> experienced this? > > >> Thank you, > >> Joe > > > Most 'send keys' operations emulate typing at the keyboard, and are > > generally done at the OS level. As a result the keystrokes tend to go > > to whatever has focus in the UI of the system you are testing on. You > > may need to set focus to the browser window first. That can mean it's > > pretty difficult to do anything else on the system when scripts are > > running since you never know when you might lose focus on your current > > task. > > > If you want to do other work on the system while scripts are running, > > and the scripts use this kind of thing then your best bet is to run > > the tests inside a virtual machine, where what you do on the rest of > > your desktop will not affect the focus 'inside' the VM. If no a mac > > look into Virtual-Box, Parallels, or VMWare Fusion. (another > > advantage of this is that you can test on a platform such as Windows > > with IE/Firefox/Chrome so that you are not doing all your testing on > > a marginal platform that only a tiny minority of most web users would > > be using. (note I'm not a mac hater.. I'm typing this on a macbook > > pro, but for compatibility testing of webapps I mostly use Virtual-Box > > VM's that use XP or Win7, and IE/Chrome/Firefox since that's what > > around 90%+ of my users will be using. Using an external monitor, I > > can have scripts running in vm's on one screen (to keep an eye on > > them) and meanwhile do useful work on the other monitor. > > > -- > > Before posting, please readhttp://watir.com/support. In short: search > > before you ask, be nice. > > > [email protected] > >http://groups.google.com/group/watir-general > > [email protected] -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. [email protected] http://groups.google.com/group/watir-general [email protected]
