How to Start IE 8 using Selenium RC in Win Vista or Win 7?

While using Selenium RC, this is a common experience that when the server is started in normal command prompt in Win Vista or Win 7, then IE fails to open the URL. A temporary file location is entered in the browser which leads to the failure of the first step of a test i.e opening the browser and entering the URL. The solution to this problem is quite simple. The command prompt needs to be started as Administrator. The process to do so is simple. In accessories, right click the ‘command prompt’ and choose ‘Run As Administrator’ and then start the selenium RC server. This will solve the Internet Explorer issue in Win Vista and Win 7 machines.

There is one alternative way to solve the issue too. The issue occurs because of the security settings of the browser. So if we tweat the browser security settings a little, we’ll be able to run IE 8 using selneium. Below are the steps to be followed.

  1. Go to Tools>>Options.
  2. Click on Security tab.
  3. Uncheck the “Enable Protected Mode” check box and click on Apply and Ok.

We are good to execute in Win 7 and Vista IE 8 and above 🙂

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s