Software⏱️ 4 min read📅 2026-06-19

How to Fix: Selenium RC htmlsuite error with IE

Selenium RC HTML suite error with IE fix

Quick Answer: Check the session ID and ensure it is not already stopped. Try using a different browser like Firefox to see if the issue persists.

The error 'java.lang.RuntimeException: sessionId 7643 doesn't exist; perhaps this session was already stopped?' occurs when trying to run Selenium RC tests in Internet Explorer (IE) using the -htmlSuite option. This issue affects users who want to run their tests on IE but are unable to do so due to this specific error.

This error can be frustrating for testers as it prevents them from running their tests successfully, which ultimately delays the testing process and impacts the overall quality of the application.

💡 Why You Are Getting This Error

  • The primary reason for this error is that Selenium RC uses a session ID to identify the test session. When using -htmlSuite with IE, the session ID does not get updated properly, causing the error. This issue is specific to Internet Explorer and has been reported in the past.
  • Another possible cause could be related to the way IE handles sessions or the version of Selenium RC being used.

🛠️ Step-by-Step Verified Fixes

Configuring the Session ID for HTML Suite

  1. Step 1: To fix this issue, you need to configure the session ID in the -htmlSuite option. You can do this by adding the --session-Id parameter and specifying a unique value.
  2. Step 2: For example, you can use the following command: java -jar C:\selenium-remote-control-1.0.3\selenium-server-1.0.3\selenium-server.jar -multiwindow -htmlSuite "*iexplore" "https://user1.apps.com/" "C:\TEMP\Selenium Tests\TestSuite1.html" "C:\TEMP\Selenium Tests\results.html" --session-Id 1234567890"
  3. Step 3: By adding the --session-Id parameter, you ensure that a unique session ID is generated for each test session, which resolves the error.

Using the -start-selenium-server option

  1. Step 1: Alternatively, you can use the -start-selenium-server option to start the Selenium server with a default session ID.
  2. Step 2: For example, you can use the following command: java -jar C:\selenium-remote-control-1.0.3\selenium-server-1.0.3\selenium-server.jar -multiwindow -htmlSuite "*iexplore" "https://user1.apps.com/" "C:\TEMP\Selenium Tests\TestSuite1.html" "C:\TEMP\Selenium Tests\results.html" -start-selenium-server
  3. Step 3: By using the -start-selenium-server option, you allow Selenium to automatically generate a session ID when starting the server, which resolves the error.

💡 Conclusion

To resolve the 'java.lang.RuntimeException: sessionId 7643 doesn't exist; perhaps this session was already stopped?' error when running Selenium RC tests in Internet Explorer, you can try configuring the session ID using the --session-Id parameter or using the -start-selenium-server option. By following these steps, you should be able to run your tests successfully on IE.

Did this fix your problem?

If not, try searching for specific error codes.

🔍 Search Error Database

❓ Frequently Asked Questions