org.stjs.testing.driver.browser
Class HeadlessBrowser
java.lang.Object
org.stjs.testing.driver.browser.AbstractBrowser
org.stjs.testing.driver.browser.LongPollingBrowser
org.stjs.testing.driver.browser.HeadlessBrowser
- All Implemented Interfaces:
- AsyncProcess, Browser
- Direct Known Subclasses:
- HeadlessChromeBrowser, HeadlessFirefoxBrowser
public abstract class HeadlessBrowser
- extends LongPollingBrowser
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HeadlessBrowser
public HeadlessBrowser(DriverConfiguration config)
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.