/** * @since 5.1.0.0 */ @Override public void start(Object optionsObject) { delegate.start(optionsObject); } }
@Override public void start() { delegate.start(); }
/** * @since 5.1.0.0 */ @Override public void start(String optionsString) { delegate.start(optionsString); }
@Override public void start() { delegate.start(); }
/** * @since 5.1.0.0 */ @Override public void start(String optionsString) { delegate.start(optionsString); }
/** * @since 5.1.0.0 */ @Override public void start(Object optionsObject) { delegate.start(optionsObject); } }
public void start(String optionsString) { try { commandProcessor.start(optionsString); } //TODO: EB Add exception catching for bad BrowserConfigurationOptions (i.e. Extension Not Found) catch (Exception e) { final String message = e.getMessage(); if (message != null && message.indexOf("Connection refused: connect") != -1) { throw new RuntimeException("Could not contact Selenium Server; have you started it?\n" + e.getMessage()); } throw new RuntimeException("Could not start Selenium session: " + e.getMessage(), e); } }
public void start() { try { commandProcessor.start(); } catch (Exception e) { final String message = e.getMessage(); if (message != null && message.startsWith("Connection refused")) { throw new RuntimeException("Could not contact Selenium Server; have you started it on '"+commandProcessor.getRemoteControlServerLocation() + "' ?\nRead more at http://seleniumhq.org/projects/remote-control/not-started.html\n" + e.getMessage()); } throw new RuntimeException("Could not start Selenium session: " + e.getMessage(), e); } }
/** * <p><code> * | start browser | <i>firefox</i> | on url | <i>http://localhost</i> | using remote server on host | <i>localhost</i> | on port | <i>4444</i> | * </code></p> * * @param browser * @param browserUrl * @param serverHost * @param serverPort * @deprecated This call requires a Selenium 1 server. It is advised to use WebDriver. */ public void startBrowserOnUrlUsingRemoteServerOnHostOnPort(final String browser, final String browserUrl, final String serverHost, final int serverPort) { setCommandProcessor(new HttpCommandProcessorAdapter(new HttpCommandProcessor(serverHost, serverPort, browser, removeAnchorTag(browserUrl)))); commandProcessor.start(); setTimeoutOnSelenium(); LOG.debug("Started HTML command processor"); }