Currently Browsing

Posts Tagged ‘ Selenium IDE ’

Solution for – Could not start Selenium Session : Connection timed out

If you get the “Could not start Selenium Session : Connection timed out” while running a test scenario it is usually due to the ports not matching for the Server and the client and results in “Selenium server not able to make a connection with the local client machine”.

a sample error message:

 java.lang.RuntimeException: Could not start Selenium session: Connection timed out: connect
at com.thoughtworks.selenium.DefaultSelenium.start(
at junit.framework.TestCase.runBare(
at com.thoughtworks.selenium.SeleneseTestCase.runBare( 2)
at junit.framework.TestResult$1.protect( 

The solution for it is to make sure to run the on the same ports. The default port where the selenium server starts up is 4444.

Solution for Selenium IDE – Your browser doesnt support Xml Http Request

If you get the “Your browser doesnt support Xml Http Request” error while running tests
in Selenium IDE even if its shows that all tests passed below is the cure for it:

This issue only happens on versions of Selenium IDE prior to 1.0.6

So there are two workarounds to this problem:

1) Get the newest version and use that (currently 1.0.7) :

2) Or if for whatever reason you are stuck with the version you have here is a workaround:


Selenium test in Java with Eclipse and JUnit

Its quite easy to run Selenium tests using Eclipse and JUnit. Basically all you need is to get Selenium RC:

and get Eclipse (Eclipse Classic will do if you don’t need the rest, the Helios 3.6 already includes JUnit)

to make things easier also get Selenium IDE (Firefox plugin for recoding tests and exporting to the desiredĀ language)

Install Selenium IDE the rest just unpack to a desired dir and you are ready to roll. If you already have Eclipse its most likely

that you have JUnit as well but just in case you need it it can be found here:

Record some test case in Selenium IDE by opening up FireFox and going to Tools->Selenium IDE

For example open up and assert some text (or do whatever test you desire)

While Selenium IDE is running you can easily assert things by right clicking (except on web pages that

have their own right click handling) and looking at the bottom commands on the popup all those come from

Solution for Selenium IDE Export to C# problem

When using the Selenium IDE to generate C# tests users get the following error “Suite export not implemented for the cs-rc formatter”:

This happens because there is an error in the code that can’t convert from the default HTML Format to C#. The workaround is to go to Options -> Format and then select C# – Selenium RC. Once converted you don’t need to export anything you can just save it or copy paste it to your C# test.

With this workaround you can also export existing saved selenium test cases from HTML or any of the others to C#. Just open up the saved test case and then switch to C# in Options -> Format