|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fluentlenium.core.Fluent
com.github.dandelion.datatables.testing.BaseIT
public abstract class BaseIT
Common abstract superclass for all tests, JSP or Thymeleaf.
This class initializes the Selenium WebDriver using a TestWatcher.
Also it contains some utility methods available in all tests.
| Field Summary | |
|---|---|
protected static org.eclipse.jetty.webapp.WebAppContext |
context
|
protected static org.openqa.selenium.WebDriver |
driver
|
org.junit.rules.TestWatcher |
watchman
|
| Constructor Summary | |
|---|---|
BaseIT()
|
|
| Method Summary | |
|---|---|
String |
defaultUrl()
|
JsResource |
getConfigurationFromPage(String page)
|
String |
getDefaultBaseUrl()
|
org.fluentlenium.core.domain.FluentWebElement |
getHtmlBody()
|
org.fluentlenium.core.domain.FluentList<org.fluentlenium.core.domain.FluentWebElement> |
getTable()
|
void |
goToPage(String page)
Build the path to the view to load for an integration test depending on the kind of test to run. |
void |
goToPage(String page,
Boolean display)
|
| Methods inherited from class org.fluentlenium.core.Fluent |
|---|
$, $, await, clear, clear, clear, click, click, executeScript, fill, fill, find, find, findFirst, getBaseUrl, getCookie, getCookies, getDriver, goTo, goTo, initFluent, pageSource, submit, submit, takeScreenShot, takeScreenShot, text, title, url, value, withDefaultPageWait, withDefaultSearchWait, withDefaultUrl |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static org.openqa.selenium.WebDriver driver
protected static org.eclipse.jetty.webapp.WebAppContext context
public org.junit.rules.TestWatcher watchman
| Constructor Detail |
|---|
public BaseIT()
| Method Detail |
|---|
public String defaultUrl()
public String getDefaultBaseUrl()
public org.fluentlenium.core.domain.FluentList<org.fluentlenium.core.domain.FluentWebElement> getTable()
public org.fluentlenium.core.domain.FluentWebElement getHtmlBody()
public void goToPage(String page)
Build the path to the view to load for an integration test depending on the kind of test to run.
All test classes must be annotated either with JspTest or with
ThymeleafTest.
page - The page to load, without any prefix or suffix.
public void goToPage(String page,
Boolean display)
public JsResource getConfigurationFromPage(String page)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||