org.stjs.testing.driver.browser
Class HeadlessBrowser

java.lang.Object
  extended by org.stjs.testing.driver.browser.AbstractBrowser
      extended by org.stjs.testing.driver.browser.LongPollingBrowser
          extended by org.stjs.testing.driver.browser.HeadlessBrowser
All Implemented Interfaces:
AsyncProcess, Browser
Direct Known Subclasses:
HeadlessChromeBrowser, HeadlessFirefoxBrowser

public abstract class HeadlessBrowser
extends LongPollingBrowser


Constructor Summary
HeadlessBrowser(DriverConfiguration config)
           
 
Method Summary
 Set<Class<? extends AsyncProcess>> getSharedDependencies()
          Returns a list of AsyncProcess that the JUnit session must start before attempting to start this browser.
protected  void startProcess(org.openqa.selenium.browserlaunchers.locators.BrowserLocator locator, String binPropertyName, String url)
           
 void stop()
          Stops this browsers and performs cleanup operations, if any.
 
Methods inherited from class org.stjs.testing.driver.browser.LongPollingBrowser
awaitNextTest, doStart, executeTest, getId, getMethodUnderExecution, getStartPageUri, getStartPageUrl, markAsDead, markAsDead, notifyNoMoreTests, registerWithLongPollingServer, sendNoMoreTestFixture, sendTestFixture, start
 
Methods inherited from class org.stjs.testing.driver.browser.AbstractBrowser
appendScriptTag, buildProcess, buildResult, getConfig, isRunningOnWindows, processSet, sendResponse, startProcess
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HeadlessBrowser

public HeadlessBrowser(DriverConfiguration config)
Method Detail

startProcess

protected void startProcess(org.openqa.selenium.browserlaunchers.locators.BrowserLocator locator,
                            String binPropertyName,
                            String url)
                     throws org.junit.runners.model.InitializationError
Overrides:
startProcess in class AbstractBrowser
Throws:
org.junit.runners.model.InitializationError

stop

public void stop()
Description copied from interface: Browser
Stops this browsers and performs cleanup operations, if any.

Specified by:
stop in interface AsyncProcess
Specified by:
stop in interface Browser
Overrides:
stop in class AbstractBrowser

getSharedDependencies

public Set<Class<? extends AsyncProcess>> getSharedDependencies()
Description copied from interface: Browser
Returns a list of AsyncProcess that the JUnit session must start before attempting to start this browser. If any of the dependencies fails to start, the JUnit session fails.

Specified by:
getSharedDependencies in interface Browser
Overrides:
getSharedDependencies in class LongPollingBrowser


Copyright © 2013. All Rights Reserved.