Most virtualization platforms have an option for a connection that
looks to the virtualised OS like the 'console' and is thus treated
differently by the OS than a RDP session.

For example Hyper-V provides a way to connect to the VM via Virtual
Machine Manager (or at least one sidebar gadget) and it appears to the
VM that you are at the physical 'console' of the system.    There
might be enough difference from such a session and your normal RDP
session that stuff could continue to work (I've not tried it)

Unfortunately that capability only works from a system with more
recent MS security, e.g. Vista, Win7, or Server2008  so you'd not be
able to do it on your xp laptop in any case.

On Jun 2, 11:05 am, koicat <pmn...@yahoo.com> wrote:
> Bill,
> Thanks for the response!  Wish it were better news...  RDP also whacks
> screenshots unless there is an active session.   Not only that but it
> must be the session where the browser and watir are running. RDP
> presents independant desktops to each session.
> Unfortunately, leaving the (correct) session open is my only option at
> the moment since RDP is the only allowed access to this VM.
>
> Thanks again!
> pat
>
> On May 21, 3:42 pm, Bill Agee <billa...@gmail.com> wrote:
>
>
>
> > Lots of people have run into this, and it seems the only workaround is to
> > leave a user logged in to the remote machine at all times.
>
> > Then, if you need to access the console of the VM where your tests are
> > running, and using the RDP client interrupts execution of your tests, you
> > can try a different method of accessing the console.
>
> > VNC or the console utility provided by your virtualization vendor (such as
> > the vSphere client or VMware Server Console, if using VMware) shouldn't
> > interfere with the desktop on the remote machine.
>
> > Thanks
> > Bill
>
> > On Fri, May 21, 2010 at 2:38 PM, koicat <pmn...@yahoo.com> wrote:
> > > Am running ruby and watir 1.6.5 which uses AutoItX3.dll (v. 3.1.1) on
> > > a Windows Server 2003 virtual machine accessed from an XP Pro laptop
> > > through Remote Desktop.
>
> > > If I run the script and leave the desktop window open, the following
> > > code runs correctly.
> > > If I minimize the window the code hangs after the WinActivate command
> > > (the WinWait for "Save As" also never times out)
>
> > > Have substituted a newer version of AutoItX3.dll (v 3.3.3) to no
> > > avail.
>
> > >   �...@wait = 60
> > >    data_path = [full path where file is to be saved]
> > >    ...
> > >    ai = WIN32OLE.new("AutoItX3.Control")
> > >    ai.WinWait("File Download", "", @Wait)
> > >    ai.WinActivate("File Download", "")
> > >    ai.ControlFocus("File Download", "", "&Save")
> > >    sleep 1
> > >    ai.ControlClick("File Download", "", "&Save", "primary")
> > >    sleep 1
> > >    ai.WinWait("Save As", "", @Wait)
> > >    sleep 0.5
> > >    ai.ControlSend("Save As", "", "Edit1", data_path)
> > >    ai.ControlClick("Save As", "", "&Save", "left")
> > >    ai.WinWait("Download complete", "", @Wait)
> > >    ai.ControlClick("Download complete", "", "Close")
> > >    ...
>
> > > This is an urgent problem as the application running this is a
> > > critical path project.
> > > Greatly appreciate any help anyone can give!
>
> > > --
> > > Before posting, please readhttp://watir.com/support. In short: search
> > > before you ask, be nice.
>
> > > You received this message because you are subscribed to
> > >http://groups.google.com/group/watir-general
> > > To post: watir-general@googlegroups.com
> > > To unsubscribe: 
> > > watir-general+unsubscr...@googlegroups.com<watir-general%2bunsubscr...@goog­legroups.com>
>
> > --
> > Before posting, please readhttp://watir.com/support. In short: search 
> > before you ask, be nice.
>
> > You received this message because you are subscribed 
> > tohttp://groups.google.com/group/watir-general
> > To post: watir-general@googlegroups.com
> > To unsubscribe: watir-general+unsubscr...@googlegroups.com- Hide quoted 
> > text -
>
> - Show quoted text -

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

You received this message because you are subscribed to 
http://groups.google.com/group/watir-general
To post: watir-general@googlegroups.com
To unsubscribe: watir-general+unsubscr...@googlegroups.com

Reply via email to