public abstract class CarbonPage extends Object
| Modifier and Type | Field and Description |
|---|---|
protected CarbonUiElementMapper |
carbonUIElementMapper |
protected org.openqa.selenium.WebDriver |
driver |
| Constructor and Description |
|---|
CarbonPage(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
|
protected org.openqa.selenium.WebDriver driver
protected CarbonUiElementMapper carbonUIElementMapper
public CarbonPage(org.openqa.selenium.WebDriver driver)
throws CarbonUIPageCreationException
driver - Instance of the web driverCarbonUIPageCreationExceptionpublic 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 countCopyright © 2015 WSO2, Inc.. All rights reserved.