public class BrowserWebDriverContainerRule
extends org.junit.rules.TestWatcher
| Modifier and Type | Class and Description |
|---|---|
static class |
BrowserWebDriverContainerRule.VncRecordingMode |
| Constructor and Description |
|---|
BrowserWebDriverContainerRule(org.openqa.selenium.remote.DesiredCapabilities desiredCapabilities) |
BrowserWebDriverContainerRule(org.openqa.selenium.remote.DesiredCapabilities desiredCapabilities,
BrowserWebDriverContainerRule.VncRecordingMode recordingMode,
File vncRecordingDirectory) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
failed(Throwable e,
org.junit.runner.Description description) |
protected void |
finished(org.junit.runner.Description description) |
String |
getHostIpAddress()
Get the IP address that containers (browsers) can use to reference a service running on the local machine,
i.e.
|
URL |
getSeleniumURL(org.openqa.selenium.remote.RemoteWebDriver driver) |
String |
getVncUrl(org.openqa.selenium.remote.RemoteWebDriver driver) |
org.openqa.selenium.remote.RemoteWebDriver |
newDriver()
Obtain a new RemoteWebDriver instance that is bound to an instance of the browser running inside a new container.
|
protected void |
succeeded(org.junit.runner.Description description) |
public BrowserWebDriverContainerRule(org.openqa.selenium.remote.DesiredCapabilities desiredCapabilities)
public BrowserWebDriverContainerRule(org.openqa.selenium.remote.DesiredCapabilities desiredCapabilities,
BrowserWebDriverContainerRule.VncRecordingMode recordingMode,
File vncRecordingDirectory)
public org.openqa.selenium.remote.RemoteWebDriver newDriver()
protected void failed(Throwable e, org.junit.runner.Description description)
failed in class org.junit.rules.TestWatcherprotected void succeeded(org.junit.runner.Description description)
succeeded in class org.junit.rules.TestWatcherprotected void finished(org.junit.runner.Description description)
finished in class org.junit.rules.TestWatcherpublic String getHostIpAddress()
public String getVncUrl(org.openqa.selenium.remote.RemoteWebDriver driver)
public URL getSeleniumURL(org.openqa.selenium.remote.RemoteWebDriver driver)
Copyright © 2015. All rights reserved.