I have some code that will give the os/browser etc - I'll post it later

This code can also be used to find the ie version, and may be more useful in 
the winclicker.rb to set the dilog titles to look for.

It dislays the corrct ie version for IE6 and IE7  using iexplorer.exe, which 
is not how the link says it should work

Paul



#
# Script to determine Intenet Explorer version
#
#  from http://support.microsoft.com/kb/q164539/
#

  require 'win32ole'
  wsh = WIN32OLE.new("Scripting.FileSystemObject")

if File.exists?('c:\program files\internet explorer\iexplore.exe')

  ver = wsh.getFileVersion('c:\program files\internet 
explorer\iexplore.exe')
else
  puts "IE 7 not found"
  windir = ENV['Windir']
  puts windir
  if File.exists?('#{windir}\System32\Shdocvw.dll')
    puts "Shdocvw.dll is there"
  else
    puts "Shdocvw.dll is not there"
  end
end

  puts ver
  wsh = nil


----- Original Message ----- 
From: "Bret Pettichord" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Wednesday, May 16, 2007 1:55 PM
Subject: Re: [Wtr-general] Supporting IE 7


> Paul Rogers wrote:
>> I think its important to support both at the moment, as Im sure many 
>> people still havent upgraded.
>>
>>
> If you or someone else had a patch for
> http://jira.openqa.org/browse/WTR-116, that would help.
>
> _______________________________________________
> Wtr-general mailing list
> [email protected]
> http://rubyforge.org/mailman/listinfo/wtr-general
> 


_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to