Class WebDriverPageObject<T extends WebDriverPageObject<T>>
- java.lang.Object
-
- com.github.aoreshin.junit5.allure.steps.StepWrapperSteps<T>
-
- com.github.aoreshin.allure.webdriver.WebDriverPageObject<T>
-
- Type Parameters:
T- - recursive generic type parameter
@PageObject public abstract class WebDriverPageObject<T extends WebDriverPageObject<T>> extends com.github.aoreshin.junit5.allure.steps.StepWrapperSteps<T>Parent class for all WebDriver page objects
-
-
Field Summary
Fields Modifier and Type Field Description protected org.openqa.selenium.WebDriverdriverprotected org.openqa.selenium.support.ui.WebDriverWaitdriverWait
-
Constructor Summary
Constructors Constructor Description WebDriverPageObject()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidclear(java.lang.String xpath)protected voidclick(java.lang.String xpath)protected org.openqa.selenium.WebElementgetWebElement(java.lang.String xpath)protected java.util.List<org.openqa.selenium.WebElement>getWebElementList(java.lang.String xpath)protected voidjsClick(java.lang.String xpath)protected voidjsClick(org.openqa.selenium.WebElement webElement)protected voidscrollIntoView(java.lang.String xpath)protected voidscrollIntoView(org.openqa.selenium.WebElement webElement)<D extends WebDriverPageObject<D>>
DseePage(java.lang.Class<D> pageClass)protected voidsendKeys(java.lang.String xpath, java.lang.CharSequence... value)protected voidwaitUntilPageIsLoaded()
-
-
-
Method Detail
-
seePage
public final <D extends WebDriverPageObject<D>> D seePage(java.lang.Class<D> pageClass)
-
sendKeys
protected void sendKeys(java.lang.String xpath, java.lang.CharSequence... value)
-
click
protected void click(java.lang.String xpath)
-
clear
protected void clear(java.lang.String xpath)
-
getWebElement
protected org.openqa.selenium.WebElement getWebElement(java.lang.String xpath)
-
getWebElementList
protected java.util.List<org.openqa.selenium.WebElement> getWebElementList(java.lang.String xpath)
-
jsClick
protected void jsClick(java.lang.String xpath)
-
jsClick
protected void jsClick(org.openqa.selenium.WebElement webElement)
-
scrollIntoView
protected void scrollIntoView(org.openqa.selenium.WebElement webElement)
-
scrollIntoView
protected void scrollIntoView(java.lang.String xpath)
-
waitUntilPageIsLoaded
protected void waitUntilPageIsLoaded()
-
-