public abstract class MLUIPage extends Object
| Modifier and Type | Field and Description |
|---|---|
protected org.openqa.selenium.WebDriver |
driver |
protected MlUiElementMapper |
mlUIElementMapper |
| Constructor and Description |
|---|
MLUIPage(org.openqa.selenium.WebDriver driver)
Creates a dataset summary page
|
| Modifier and Type | Method and Description |
|---|---|
org.openqa.selenium.WebDriver |
getDriver()
Gets the web driver of the page.
|
int |
getElementCount(org.openqa.selenium.By by)
Count the number of given elements in the page
|
boolean |
isElementPresent(org.openqa.selenium.By by)
This method check whether the given element is present in the page
|
boolean |
isEnabled(org.openqa.selenium.By by)
This method checks whether the element is enabled
|
void |
sleepTillPageFound(org.openqa.selenium.By by)
Sleep till redirected to this page
|
protected org.openqa.selenium.WebDriver driver
protected MlUiElementMapper mlUIElementMapper
public MLUIPage(org.openqa.selenium.WebDriver driver)
throws MLUIPageCreationException
driver - instance of the web driverMLUIPageCreationExceptionpublic org.openqa.selenium.WebDriver getDriver()
public boolean isElementPresent(org.openqa.selenium.By by)
by - By element to be presentpublic int getElementCount(org.openqa.selenium.By by)
page - Page of which the elements to me searchby - By element to be countpublic boolean isEnabled(org.openqa.selenium.By by)
by - By element to be checkedpublic void sleepTillPageFound(org.openqa.selenium.By by)
by - By element to identify the pageCopyright © 2015 WSO2, Inc.. All rights reserved.