Class AbstractPageObject
- java.lang.Object
-
- step.basic.web.selenium.keywords.helper.AbstractPageObject
-
- Direct Known Subclasses:
CommonPanel,DataSetNode,GenericStepPage,LoginPage,MainPage,RtmPage,SequenceNode
public class AbstractPageObject extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected static longDEFAULT_TIMEOUTprotected org.openqa.selenium.WebDriverdriver
-
Constructor Summary
Constructors Constructor Description AbstractPageObject(org.openqa.selenium.WebDriver driver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddoWithoutImplicitWait(Runnable runnable)<T> TdoWithoutImplicitWait(Callable<T> runnable)List<org.openqa.selenium.WebElement>findAllBy(org.openqa.selenium.By by)List<org.openqa.selenium.WebElement>findAllBy(org.openqa.selenium.By by, long timeout)org.openqa.selenium.WebElementfindBy(org.openqa.selenium.By by)org.openqa.selenium.WebElementfindBy(org.openqa.selenium.By by, long timeout)org.openqa.selenium.WebDrivergetDriver()JSWaitergetJSWaiter()voidsafeClick(org.openqa.selenium.By by)voidsafeClick(org.openqa.selenium.By by, long timeout)voidsafeJavascriptClick(org.openqa.selenium.By by)voidsafeJavascriptClick(org.openqa.selenium.By by, long timeout)voidsafeSendKeys(org.openqa.selenium.By by, String keys)voidsafeSendKeys(org.openqa.selenium.By by, String keys, long timeout)voidsafeWait(Supplier<Boolean> condition)voidsafeWait(Supplier<Boolean> condition, long timeout)
-
-
-
Method Detail
-
getDriver
public org.openqa.selenium.WebDriver getDriver()
-
getJSWaiter
public JSWaiter getJSWaiter()
-
findBy
public org.openqa.selenium.WebElement findBy(org.openqa.selenium.By by, long timeout)
-
findBy
public org.openqa.selenium.WebElement findBy(org.openqa.selenium.By by)
-
findAllBy
public List<org.openqa.selenium.WebElement> findAllBy(org.openqa.selenium.By by, long timeout)
-
findAllBy
public List<org.openqa.selenium.WebElement> findAllBy(org.openqa.selenium.By by)
-
safeJavascriptClick
public void safeJavascriptClick(org.openqa.selenium.By by)
-
safeJavascriptClick
public void safeJavascriptClick(org.openqa.selenium.By by, long timeout)
-
safeClick
public void safeClick(org.openqa.selenium.By by)
-
safeClick
public void safeClick(org.openqa.selenium.By by, long timeout)
-
safeSendKeys
public void safeSendKeys(org.openqa.selenium.By by, String keys, long timeout)
-
safeSendKeys
public void safeSendKeys(org.openqa.selenium.By by, String keys)
-
doWithoutImplicitWait
public <T> T doWithoutImplicitWait(Callable<T> runnable)
-
doWithoutImplicitWait
public void doWithoutImplicitWait(Runnable runnable)
-
-