public void start(Object optionsObject) { start(optionsObject.toString()); }
@Override public void start(String optionsString) { super.start(optionsString); dumpSessionId(); }
@Override public void start(Object optionsObject) { super.start(optionsObject); dumpSessionId(); }
/** * Should not be called by paxml */ void start() { selenium.start(); if (this.browserStartCommand.equals("*iexplore")) { log.debug("We are running explorer, lets use javascript-xpath"); selenium.useXpathLibrary("javascript-xpath"); } initialized = true; }
@Override public void start() { super.start(); dumpSessionId(); }
/** * Should not be called by paxml */ void start() { selenium.start(); if (this.browserStartCommand.equals("*iexplore")) { log.debug("We are running explorer, lets use javascript-xpath"); selenium.useXpathLibrary("javascript-xpath"); } initialized = true; }
public void startSelenium() { DefaultSelenium selenium = getSelenium(); if (selenium == null) { selenium = new DefaultSelenium("localhost", 4444, browserName, applicationRoot); ((ConfigurableApplicationContext) applicationContext).getBeanFactory(). registerSingleton(SELENIUM_BEAN_NAME, selenium); } if (state == State.STOPPED) { selenium.start(); state = State.STARTED; } }
public DefaultSelenium createInstance(SeleniumConfiguration configuration) { DefaultSelenium selenium = new DefaultSelenium(configuration.getServerHost(), configuration.getServerPort(), configuration.getBrowser(), configuration.getUrl()); selenium.start(); selenium.setSpeed(String.valueOf(configuration.getSpeed())); selenium.setTimeout(String.valueOf(configuration.getTimeout())); return selenium; }
public void testWrapsConnectionRefusedWithUserFriendlyExceptionMessage() { final FailOnStartCommandProcessor failOnStartCommandProcessor; failOnStartCommandProcessor = new FailOnStartCommandProcessor("Connection refused: connect"); try { new DefaultSelenium(failOnStartCommandProcessor).start(); fail("Did not catch RuntimeException as expected"); } catch (RuntimeException expected) { assertTrue(-1 != expected.getMessage().indexOf("Could not contact Selenium Server; have you started it on '' ?")); assertTrue(-1 != expected.getMessage().indexOf("Connection refused: connect")); } }
public void testShouldLeaveOtherExceptionAlone() { FailOnStartCommandProcessor failOnStartCommandProcessor; failOnStartCommandProcessor = new FailOnStartCommandProcessor("some crazy unexpected exception"); try { new DefaultSelenium(failOnStartCommandProcessor).start(); fail("Did not catch RuntimeException as expected"); } catch (RuntimeException expected) { /* Catching RuntimeEception as expected */ assertTrue(-1 != expected.getMessage().indexOf("Could not start Selenium session: ")); assertTrue(-1 != expected.getMessage().indexOf("some crazy unexpected exception")); } }