Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Selenium - problem in starting the browser

Guy Roth
Ranch Hand
Posts: 74
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We have got a Test suite based on Selenium. Lately We shift our testing machine to a new machine, and since then the Selenium tests can't run properly.
The exception that I get is:
com.thoughtworks.selenium.SeleniumException: Failed to start new browser session: Error while launching browser
at com.thoughtworks.selenium.HttpCommandProcessor.throwAssertionFailureExceptionOrError(
at com.thoughtworks.selenium.HttpCommandProcessor.doCommand(
at com.thoughtworks.selenium.HttpCommandProcessor.getString(
at com.thoughtworks.selenium.HttpCommandProcessor.start(
at com.thoughtworks.selenium.DefaultSelenium.start(

what's weired in my case is that I get it every first time that I try to run Selenium test suite and then on the second time I run it, it succeed. So nothing wrong in my code basically.
The code is:

The new machine is 64 bit and it try to load IE7 based on 64 bit. Again- sometimes the same tests run and sometimes not with exactly the same code.
another thing is that when it tries to run it is stuck for 30 minutes on the command: browser.start();
and then throws the exception above probably as a result of a timeout.

Has anyone any idea what caused this annoying error and how to avoid it?
rumija ho
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

i am also getting the same error. For the First time it is redirecting to some Blank.html page present in "C:\Users\<Currect User>\AppData\Local\Temp\CustomProfileDir*\Core\Blank.html". But from the second time onwards it is working fine. Could you please help me if you have resolved this issue.

Thanks in advance

Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!