public class Page extends Object
| Constructor and Description |
|---|
Page(org.openqa.selenium.WebDriver driverValue) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
allElementsAreDisabled(Control[] elements) |
boolean |
allElementsAreEnabled(Control[] elements) |
boolean |
allElementsAreInvisible(Control[] elements) |
boolean |
allElementsAreVisible(Control[] elements) |
boolean |
allElementsDoNotExist(Control[] elements) |
boolean |
allElementsExist(Control[] elements) |
boolean |
anyOfElementsDoNotExist(Control[] elements) |
boolean |
anyOfElementsExist(Control[] elements) |
boolean |
anyOfElementsIsDisabled(Control[] elements) |
boolean |
anyOfElementsIsEnabled(Control[] elements) |
boolean |
anyOfElementsIsInvisible(Control[] elements) |
boolean |
anyOfElementsIsVisible(Control[] elements) |
byte[] |
captureScreenShot() |
File |
captureScreenShot(String destination) |
static Page |
forName(String name) |
static Page |
forName(String name,
String pagePackage) |
static Page |
getCurrent() |
static Page |
getCurrentFromList(Class<? extends Page>[] pageClasses,
int tries) |
static Page |
getCurrentFromList(Class<? extends Page>[] pageClasses,
int tries,
boolean useCache) |
static String |
getDefaultPagesPackage() |
org.openqa.selenium.WebDriver |
getDriver() |
static Control |
getFirstAvailableControlFromList(Control[] controls,
int tries) |
Control |
getScrollable() |
String |
getSource() |
Control |
getTextControl(String message) |
static long |
getTimeout() |
void |
hideKeyboard() |
boolean |
isCurrent() |
boolean |
isCurrent(long timeoutValue) |
boolean |
isTextPresent(String text) |
Page |
navigate() |
Control |
onPage(String name) |
boolean |
scrollTo(boolean up) |
boolean |
scrollTo(Control control) |
boolean |
scrollTo(Control control,
boolean up) |
boolean |
scrollTo(Control control,
ScrollTo scrollDirection) |
boolean |
scrollTo(String text) |
boolean |
scrollTo(String text,
boolean up) |
boolean |
scrollTo(String text,
ScrollTo scrollDirection) |
static void |
setCurrent(Page newPage) |
static void |
setDefaultPagesPackage(String defaultPagesPackageValue) |
static void |
setTimeout(long timeoutValue) |
boolean |
swipeScreen(boolean vertical,
boolean leftTop,
boolean once) |
boolean |
swipeScreen(boolean vertical,
boolean leftTop,
boolean once,
int seconds) |
public static long getTimeout()
public static void setTimeout(long timeoutValue)
public static String getDefaultPagesPackage()
public static void setDefaultPagesPackage(String defaultPagesPackageValue)
public static Page forName(String name, String pagePackage) throws Exception
Exceptionpublic static Page getCurrent()
public static void setCurrent(Page newPage)
public static Page getCurrentFromList(Class<? extends Page>[] pageClasses, int tries) throws Exception
Exceptionpublic static Page getCurrentFromList(Class<? extends Page>[] pageClasses, int tries, boolean useCache) throws Exception
Exceptionpublic static Control getFirstAvailableControlFromList(Control[] controls, int tries) throws Exception
Exceptionpublic org.openqa.selenium.WebDriver getDriver()
public boolean isTextPresent(String text)
public byte[] captureScreenShot()
throws IOException
IOExceptionpublic File captureScreenShot(String destination) throws IOException
IOExceptionpublic String getSource()
public Control getScrollable()
public boolean swipeScreen(boolean vertical,
boolean leftTop,
boolean once)
public boolean swipeScreen(boolean vertical,
boolean leftTop,
boolean once,
int seconds)
public boolean scrollTo(Control control, boolean up)
public boolean scrollTo(String text)
public void hideKeyboard()
public boolean allElementsExist(Control[] elements) throws Exception
Exceptionpublic boolean allElementsDoNotExist(Control[] elements) throws Exception
Exceptionpublic boolean allElementsAreVisible(Control[] elements) throws Exception
Exceptionpublic boolean allElementsAreInvisible(Control[] elements) throws Exception
Exceptionpublic boolean allElementsAreEnabled(Control[] elements) throws Exception
Exceptionpublic boolean allElementsAreDisabled(Control[] elements) throws Exception
Exceptionpublic boolean anyOfElementsExist(Control[] elements) throws Exception
Exceptionpublic boolean anyOfElementsDoNotExist(Control[] elements) throws Exception
Exceptionpublic boolean anyOfElementsIsVisible(Control[] elements) throws Exception
Exceptionpublic boolean anyOfElementsIsInvisible(Control[] elements) throws Exception
Exceptionpublic boolean anyOfElementsIsEnabled(Control[] elements) throws Exception
Exceptionpublic boolean anyOfElementsIsDisabled(Control[] elements) throws Exception
ExceptionCopyright © 2013-2018. All Rights Reserved.