public class BaseObject
Modifiers | Name | Description |
---|---|---|
protected WebDriver |
driver |
|
protected WebElement |
element |
|
protected String |
loggerName |
|
protected BaseObject |
parent |
|
protected String |
value |
Constructor and description |
---|
BaseObject
(WebDriver driver, WebElement webElement) |
BaseObject
() |
Type Params | Return Type | Name and description |
---|---|---|
|
public Result |
checkText(String input) Check if value get from web element matches regular expression |
|
public Result |
click() |
|
public Result |
doubleClick() Do double click action |
|
public Result |
getAttribute(String name) Get attribute value of a web element |
|
public Result |
getCssValue(String propertyName) |
|
public WebDriver |
getDriver() |
|
public WebElement |
getElement() |
|
protected String |
getElementAttribute(String key) |
|
public String |
getElementText() Get element text |
|
public String |
getLoggerName() |
|
public Result |
getValue() |
|
protected String[] |
getWindowsTitle() |
|
protected void |
handleTimeoutLoading() |
|
public Result |
isAttributeContainsValues(String attribute, String[] values) Verify attribute value contains spcified data |
|
public Result |
isExist() Verify web element existence |
|
public Result |
isValueContain(String input) |
|
public Result |
mouseMove() Do right mouse move action |
|
protected void |
refreshWebElement() |
|
protected Result |
reportHappyCase(Object value) |
|
protected Result |
reportUnhappyCase(Object value, boolean needToReNewBrowser, String logMessageId, Object params) |
|
public Result |
rightClick() |
|
public void |
setDriver(WebDriver driver) |
|
public void |
setElement(WebElement element) |
|
public void |
setLoggerName(String loggerName) |
|
protected boolean |
verifyStringContains(String verifyString, String[] containsValues) |
|
protected boolean |
verifyStringExact(String verifyString, String value) |
|
protected Result |
waitForPageLoaded(int timeOut) Wait for page loading. |
Check if value get from web element matches regular expression
string
- - regular expresionDo double click action
Get attribute value of a web element
string
- - attribute nameGet element text
Verify attribute value contains spcified data
Verify web element existence
Do right mouse move action
Wait for page loading. Automatically stop loading after timeout number.
int
- - timeout number