Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 11th, 2012  |  syntax: None  |  size: 0.87 KB  |  hits: 11  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Runtime exception at selenium.start() - Could not start Selenium session: Failed to start new browser session: Error while launching browser
  2. private static HttpCommandProcessor proc;
  3.     public static DefaultSelenium selenium;
  4.  
  5.     if (selenium == null) {
  6.  
  7.         proc = new HttpCommandProcessor("localhost", 4444, browserName,
  8.                 urlName);
  9.         selenium = new DefaultSelenium(proc);
  10.         **selenium.start();**
  11.         selenium.setTimeout(String.valueOf(PAGE_TIMEOUT_TIME));
  12.         selenium.useXpathLibrary("javascript-xpath");
  13.         selenium.deleteAllVisibleCookies();            
  14.     }
  15.        
  16. java.lang.RuntimeException: Could not start Selenium session: Failed to start new browser session: Error while launching browser
  17.   at com.thoughtworks.selenium.DefaultSelenium.start(DefaultSelenium.java:107)
  18.   at <package>.SuperClass.connectToUrl(SuperClass.java:340)