public abstract class SeleniumTest extends Object
| Modifier and Type | Field and Description |
|---|---|
org.junit.rules.TestWatcher |
printTestName |
org.junit.rules.RuleChain |
ruleChain |
org.junit.rules.TestWatcher |
takeSnapshot |
| Constructor and Description |
|---|
SeleniumTest() |
| Modifier and Type | Method and Description |
|---|---|
protected org.openqa.selenium.WebDriver |
createWebDriver() |
String |
currentUrl() |
DomElement |
find(org.openqa.selenium.By selector) |
DomElement |
find(String selector) |
protected abstract String |
getDefaultBaseUrl() |
org.openqa.selenium.WebDriver |
getDriver() |
void |
goTo(String url) |
String |
pageSource() |
protected File |
snapshotPath(org.junit.runner.Description desc) |
String |
title() |
public org.junit.rules.TestWatcher printTestName
public org.junit.rules.TestWatcher takeSnapshot
public org.junit.rules.RuleChain ruleChain
protected org.openqa.selenium.WebDriver createWebDriver()
protected File snapshotPath(org.junit.runner.Description desc)
protected abstract String getDefaultBaseUrl()
public void goTo(String url)
public org.openqa.selenium.WebDriver getDriver()
public String currentUrl()
public String title()
public String pageSource()
public DomElement find(String selector)
public DomElement find(org.openqa.selenium.By selector)
Copyright © 2014. All Rights Reserved.