<http://stackoverflow.com/questions/13386356/watir-automation-on-windows-7-with-ie8#>
I am trying to run watir scripts on Wndows 7 on IE8 as administrator.
Here is problem description: Problem was with below statement(popup
windows) popup = Watir::IE.attach(:url, /ContactDetails/) and Error message
was ‘ Unable to locate the url(ContactDetails)
The issue seems to be that when there already exists an instance of IE8
that was opened with administrative privs, Watir won't see any other IE8
windows that are being run as admin, including ones it opens itself.
Fix that i have been doing: Turn off User Account Control (set to the
lowest setting). Go to Control Panel->System and Security->Action
Center->Change User Account Control settings, and drop the slider to the
lowest setting.
But this is not a permanent fix, i have to change the windows 7 settings
every day to run my automation script.
Can anyone help me finding out the permanent solution ?
On Friday, October 1, 2010 11:18:11 AM UTC-7, JackieH wrote:
>
> I am running a script that clicks a link and brings up another window
> that has a PDF in it....The code does an Watir::IE.attach(:title, /
> \.pdf/) to find the "pop-up" window and close it. When I try to run
> this on Windows 7/IE8/Run as administrator it returns that the window
> is NOT found...If I go through the IRB and do Watir:IE.each the only
> window found is the main window....Now, if I run it as NOT as
> administrator Watir::IE.attach finds the window and iterating through
> each window in the IRB shows the window...Problem is for other issues,
> you really want to Run as administrator...
>
> Running Ruby 1.8.6 patch level 111 - Watir 1.6.2 - and from what I
> know, the latest version of all supporting windows gems...
>
> Any insight?
--
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]