HI
Try the below code it may be helpful to you
hkey_local_machine=Win32::Registry::HKEY_LOCAL_MACHINE
def getKeyValue(hive, key_path, key_name)
reg_obj=hive.open(key_path, Win32::Registry::KEY_READ)
begin
reg_typ, reg_val = reg_obj.read(key_name)
rescue Win32::Registry::Error
puts "key not found : #{key_name}"
end
return reg_val
end
def GetIEBrowserVersion()
hkey_local_machine=Win32::Registry::HKEY_LOCAL_MACHINE
return getKeyValue(hkey_local_machine,
"SOFTWARE\\Microsoft\\Internet Explorer", "Version")
end
k=GetIEBrowserVersion()
$Log.puts 'IE version:'+k
Ramana.........
On Tue, Oct 14, 2008 at 4:05 AM, bugs apple <[EMAIL PROTECTED]> wrote:
> Sorry, my means is how to design ruby code to get IE version?
>
> do you have some ideas?
>
> Thanks
>
>
>
> 2008/10/14 Jeff Fry <[EMAIL PROTECTED]>
>
> To check the version of just about any Windows application, on the top
>> menu. select Help > About
>>
>> If you don't see a Help menu, you are probably on IE7. Look for a blue (?)
>> icon, and check the About page in it instead.
>>
>>
>> On Tue, Oct 14, 2008 at 12:27 AM, bugs apple <[EMAIL PROTECTED]> wrote:
>>
>>> hi, folks
>>>
>>> I have to check the IE version on the machine to decide what tag work
>>> well.
>>>
>>> HOW DO I GET THE IE VERSION?
>>>
>>>
>>>
>>>
>>
>>
>> --
>> Jeff Fry
>>
>> http://testingjeff.wordpress.com
>> http://associationforsoftwaretesting.org
>>
>>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Watir General" group.
To post to this group, send email to [email protected]
Before posting, please read the following guidelines:
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---