Package org.opennms.smoketest.selenium
Class AbstractPage
- java.lang.Object
-
- org.opennms.smoketest.selenium.AbstractPage
-
public class AbstractPage extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected static longLONG_WAIT_SECONDSprotected static longSHORT_WAIT_SECONDSprotected AbstractOpenNMSSeleniumHelpertestCase
-
Constructor Summary
Constructors Constructor Description AbstractPage(AbstractOpenNMSSeleniumHelper testCase)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.openqa.selenium.WebElementclickElement(org.openqa.selenium.By by)protected org.openqa.selenium.WebElemententerText(org.openqa.selenium.By by, String text)protected org.openqa.selenium.WebElementfindElement(org.openqa.selenium.By by)protected org.openqa.selenium.WebElementfindElementByName(String name)protected org.openqa.selenium.WebElementfindElementByXpath(String xpath)protected List<org.openqa.selenium.WebElement>findElements(org.openqa.selenium.By by)protected voidget(String path)protected org.openqa.selenium.WebDrivergetDriver()protected org.openqa.selenium.support.ui.ExpectedCondition<Boolean>pageContainsText(String text)protected voidwaitUntil(org.openqa.selenium.support.ui.ExpectedCondition<Boolean> condition)
-
-
-
Field Detail
-
SHORT_WAIT_SECONDS
protected static final long SHORT_WAIT_SECONDS
- See Also:
- Constant Field Values
-
LONG_WAIT_SECONDS
protected static final long LONG_WAIT_SECONDS
- See Also:
- Constant Field Values
-
testCase
protected final AbstractOpenNMSSeleniumHelper testCase
-
-
Constructor Detail
-
AbstractPage
public AbstractPage(AbstractOpenNMSSeleniumHelper testCase)
-
-
Method Detail
-
getDriver
protected org.openqa.selenium.WebDriver getDriver()
-
get
protected void get(String path)
-
findElements
protected List<org.openqa.selenium.WebElement> findElements(org.openqa.selenium.By by)
-
findElement
protected org.openqa.selenium.WebElement findElement(org.openqa.selenium.By by)
-
findElementByName
protected org.openqa.selenium.WebElement findElementByName(String name)
-
findElementByXpath
protected org.openqa.selenium.WebElement findElementByXpath(String xpath)
-
clickElement
protected org.openqa.selenium.WebElement clickElement(org.openqa.selenium.By by)
-
enterText
protected org.openqa.selenium.WebElement enterText(org.openqa.selenium.By by, String text)
-
waitUntil
protected void waitUntil(org.openqa.selenium.support.ui.ExpectedCondition<Boolean> condition)
-
-