Hi, I encounter exactly the same issue discussed here. May I know if any 
solution has been found?

Thanks,
Chengwei

dholcombe於 2010年5月5日星期三UTC+8上午4時26分03秒寫道:
>
> The script is being run as admin as noted. To be specific By running 
> "Start Command Promt with Ruby" as administrator the script fails to 
> attach to the window opened by ie.link. I can verify that this is the 
> case on my installation which is similar to the original poster: 
>
> ruby 1.8.6 (2010-02-04 patchlevel 398) [i386-mingw32] 
> watir 1.6.5 
> Windows 7 Enterprise 64-bit 
> IE 8 
>
> The script seems to run fine on XP and Windows Server 2003, so I 
> suspect it has something to do with the security model changes made in 
> Vista, Windows 7, Server 2008 or some other change to the API being 
> used by watir. 
>
> > > *Here’s a simple script that demonstrates success if run as non-admin 
> > > *and FAILURE if run as admin 
> > > * 
> > > * 
> > > *require 'rubygems' 
> > > *require 'watir' 
> > > *ie = Watir::IE.start("http://www.quackit.com/html/codes/ 
> > > *html_open_link_in_new_window.cfm") 
> > > *ie.link(:text,"HTML Help").click 
> > > *ie2 = Watir::IE.attach(:title,/Help/) 
> > > *#ie2 = Watir::IE.find(:title,/Help/) 
> > > *if ie2==nil 
> > > *                print "ie2 nil" 
> > > *else 
> > > *                print "ie2 not nil" 
> > > *end 
>
> -- 
> 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: [email protected] <javascript:> 
> To unsubscribe: [email protected] <javascript:> 
>

-- 
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]

Reply via email to