Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 580463
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T14:28:33+00:00 2026-05-13T14:28:33+00:00

We have an automated testing cluster based on selenium-grid. To manage the cluster, I

  • 0

We have an automated testing cluster based on selenium-grid.

To manage the cluster, I have built a collection of Rake (Ruby) tasks which can start, restart, ping, and stop nodes. I’m testing our application across a number of browsers including IE6, IE7, and IE8. This means each node in the cluster has to be aware of which version of IE is installed so that it can claim the correct selenium-grid profile name (eg: "IE6 on Windows XP" vs. "IE8 on Windows Vista"), so that certain tests can be written against those browsers.

My question:

I’d like to cut down on the configuration work here. How do I programmatically determine which version of IE is running on the current system? I have tried the following technique:

wmic product where "Vendor like '%Microsoft%'" get Name, Version

But this only returns versions of programs that were installed with the Windows Installer, so IE doesn’t show up in this list.

Ideally I’d like to be able to determine this from inside of a Rake script, or at least something that’s callable from a Rake script.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T14:28:33+00:00Added an answer on May 13, 2026 at 2:28 pm

    You can use WMI, I know it’s not a rake script, but you could run the script (or create a .NET application) and feed the results into your application.

    It’s kind of a hack, but at least it will work. Here’s some code from technet.

    strComputer = "."
    Set objWMIService = GetObject("winmgmts:\\" & strComputer & _
        "\root\cimv2\Applications\MicrosoftIE")
    
    Set colIESettings = objWMIService.ExecQuery _
        ("Select * from MicrosoftIE_Summary")
    
    For Each strIESetting in colIESettings
        Wscript.Echo strIESetting.Version
    Next
    

    Full Source

    Once you have this information, you can pass the information to your rake script using the command line.

    rake YourScript[<argument from vbscript>]
    

    EDIT: You can copy/paste this code into a file, name it whatever.vbs, and use the cscript command to execute the script.

    cscript //Nologo ie_version.vbs

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using selenium grid for automated testing. I have followed the official documents
Background: We have web based product and a growing suite of automated Selenium tests
I am interested in doing automated testing against a Flex based UI. I have
I have started using the selenium plugin for firefox for web automated testing. Is
I'm fairly new at Python/JS and also automated testing with Selenium/WebDriver, but I have
For automated testing (using Hudson) I have a script that generates a bunch of
I have been using Selenium Library with Robot Framework for writing automated tests for
Xcode allows you to create automated scripts for performing repetitive tasks. What scripts have
I maintain Autoit project used for automated testing of swing app. Those tests have
I'm using Selenium to ease my testing burden and I have about 1,000 different

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.