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 long
LONG_WAIT_SECONDS
protected static long
SHORT_WAIT_SECONDS
protected AbstractOpenNMSSeleniumHelper
testCase
-
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.WebElement
clickElement(org.openqa.selenium.By by)
protected org.openqa.selenium.WebElement
enterText(org.openqa.selenium.By by, String text)
protected org.openqa.selenium.WebElement
findElement(org.openqa.selenium.By by)
protected org.openqa.selenium.WebElement
findElementByName(String name)
protected org.openqa.selenium.WebElement
findElementByXpath(String xpath)
protected List<org.openqa.selenium.WebElement>
findElements(org.openqa.selenium.By by)
protected void
get(String path)
protected org.openqa.selenium.WebDriver
getDriver()
protected org.openqa.selenium.support.ui.ExpectedCondition<Boolean>
pageContainsText(String text)
protected void
waitUntil(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)
-
-