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.
- Go to Tools>>Options.
- Click on Security tab.
- 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 🙂