Re: [Wtr-general] Question about IE.new_process and Vista

2007-05-25 Thread Bach Le
So here is how I fixed my problem:

1. Goto the Control Panel
2. Click on User Accounts
3. Click on User Accounts again
4. Select the account you are using
5. Click "Turn User Account Control on or off"
6. Turn User Account Control off

This allowed Shell.Application.Window to find the correct window when IE is 
created in a test.

Hope that helps everyone else. I'll update the JIRA ticket as well.
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] Question about IE.new_process and Vista

2007-05-25 Thread Bret Pettichord
Bach Le wrote:
> I thought the two problems are related because in neither instance was watir 
> able to find the window after it was created (I didn't look into the 
> specifics). I did look into it some more after this post and I found out that 
> it was Vista's security settings that caused watir to break. Turning off 
> these security settings fixed it. I don't remember the details right now but 
> as soon as I get my vista box up and running again, I will update the JIRA 
> ticket and this thread with the details. I'm back on my old machine now which 
> is running XP. I'll switch back a little later in the day so I'll update in a 
> few hours.
It would be great if you could get us that information. We've had a lot 
of vista-related complaints lately and this will surely help.

Bret
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] Question about IE.new_process and Vista

2007-05-25 Thread Bach Le
I thought the two problems are related because in neither instance was watir 
able to find the window after it was created (I didn't look into the 
specifics). I did look into it some more after this post and I found out that 
it was Vista's security settings that caused watir to break. Turning off these 
security settings fixed it. I don't remember the details right now but as soon 
as I get my vista box up and running again, I will update the JIRA ticket and 
this thread with the details. I'm back on my old machine now which is running 
XP. I'll switch back a little later in the day so I'll update in a few hours.
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] Question about IE.new_process and Vista

2007-05-24 Thread Bret Pettichord
Bach Le wrote:
> Bret, the problem actually exists for IE.new as well. I create a new IE 
> window with IE.new and it creates the window but when I call the goto method 
> to navigate to any page, a new IE window shows up and the navigation is done 
> in that window.
>
>
> I've updated the ticket to include this information.
Why do you think the two problems are related?
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] Question about IE.new_process and Vista

2007-05-24 Thread Bret Pettichord
Bach Le wrote:
> Bret, the problem actually exists for IE.new as well. I create a new IE 
> window with IE.new and it creates the window but when I call the goto method 
> to navigate to any page, a new IE window shows up and the navigation is done 
> in that window.
>   
Can you show me your code?
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] Question about IE.new_process and Vista

2007-05-24 Thread Bach Le
Bret, the problem actually exists for IE.new as well. I create a new IE window 
with IE.new and it creates the window but when I call the goto method to 
navigate to any page, a new IE window shows up and the navigation is done in 
that window.


I've updated the ticket to include this information.
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] Question about IE.new_process and Vista

2007-05-24 Thread Bret Pettichord
Bach Le wrote:
> I've installed watir 1165 and tried using IE.new_process on Windows Vista and 
> in both tests and irb, IE.new_process fails. It fails after creating the 
> window when it tries to get the process id from hwnd. 
>
> I have a coworker who installed this on his Vista machine and it works fine. 
>
>
> The problem is that Shell.Application.windows does not get all of the windows 
> but just the ones that are browsing the file system so the IE windows do not 
> show up in this list. It ends up doing in an infinite loop and never breaks 
> out of it.
>
>
> Does anyone have any idea how to fix this?
>   
Thanks for the report. I've logged this as 
http://jira.openqa.org/browse/WTR-156

I am in the process of migrating this functionality into core watir and 
would like to get problems like this fixed.

I guess the next step is to figure out why the Shell.Application windows 
are not including any of the IE windows. That is definitely a problem, 
and, as stated, would be a core MS bug.

The other possibility might be that it actually is showing up in this 
list, but there could be a flaw in the logic we are using to decide 
whether it is an IE window or not (there have been other flaws in the past).

Bret
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


[Wtr-general] Question about IE.new_process and Vista

2007-05-24 Thread Bach Le
I've installed watir 1165 and tried using IE.new_process on Windows Vista and 
in both tests and irb, IE.new_process fails. It fails after creating the window 
when it tries to get the process id from hwnd. 

I have a coworker who installed this on his Vista machine and it works fine. 


The problem is that Shell.Application.windows does not get all of the windows 
but just the ones that are browsing the file system so the IE windows do not 
show up in this list. It ends up doing in an infinite loop and never breaks out 
of it.


Does anyone have any idea how to fix this?
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general