public class WebPageValidator extends UIObjectValidator
browser, region, uiObject| Constructor and Description |
|---|
WebPageValidator(WebBrowser browser,
WebPage element) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
checkWebPagePresence()
Based on the web page recognition parameters, this method checks whether
the web page is opened/presence.
|
void |
click(int numRetries) |
void |
clickAndHold(int numRetries) |
void |
doubleClick(int numRetries) |
org.openqa.selenium.WebElement |
findElement(int numRetries) |
org.openqa.selenium.WebElement |
findElementNoException(int numRetries) |
List<org.openqa.selenium.WebElement> |
findElements(int numRetries) |
WebPage |
getUIObject() |
boolean |
isPresent(int numRetries) |
boolean |
isVisible(int numRetries) |
void |
openWebPage()
This method is used to open the web page only if it is not already
opened.
|
void |
performKeyDown(org.openqa.selenium.Keys keys,
int numRetries) |
void |
performKeyPressed(org.openqa.selenium.Keys keys,
int numRetries) |
void |
performKeyUp(org.openqa.selenium.Keys keys,
int numRetries) |
void |
release(int numRetries) |
void |
rightClick(int numRetries) |
WebPageValidator |
scrollElementOnViewport(Scrollbar scrollbar) |
void |
setComponent(WebPage component) |
void |
typeText(String text,
NewTextLocation location,
int numRetries) |
void |
validateWebPagePresent(int numRetries) |
getRegion, geUIObjectType, matchTextValue, performAction, seleniumToSikuliKeyConverter, validateNotPresent, validatePresent, validateTextValuepublic WebPageValidator(WebBrowser browser, WebPage element)
public WebPage getUIObject()
getUIObject in class UIObjectValidatorpublic void setComponent(WebPage component)
public void validateWebPagePresent(int numRetries)
protected boolean checkWebPagePresence()
public void openWebPage()
public boolean isPresent(int numRetries)
isPresent in class UIObjectValidatorpublic boolean isVisible(int numRetries)
isVisible in class UIObjectValidatorpublic void click(int numRetries)
click in class UIObjectValidatorpublic void doubleClick(int numRetries)
doubleClick in class UIObjectValidatorpublic void rightClick(int numRetries)
rightClick in class UIObjectValidatorpublic WebPageValidator scrollElementOnViewport(Scrollbar scrollbar)
scrollElementOnViewport in class UIObjectValidatorpublic void clickAndHold(int numRetries)
clickAndHold in class UIObjectValidatorpublic void release(int numRetries)
release in class UIObjectValidatorpublic void performKeyDown(org.openqa.selenium.Keys keys,
int numRetries)
performKeyDown in class UIObjectValidatorpublic void performKeyUp(org.openqa.selenium.Keys keys,
int numRetries)
performKeyUp in class UIObjectValidatorpublic void performKeyPressed(org.openqa.selenium.Keys keys,
int numRetries)
performKeyPressed in class UIObjectValidatorpublic void typeText(String text, NewTextLocation location, int numRetries)
typeText in class UIObjectValidatorpublic org.openqa.selenium.WebElement findElement(int numRetries)
findElement in class UIObjectValidatorpublic org.openqa.selenium.WebElement findElementNoException(int numRetries)
findElementNoException in class UIObjectValidatorpublic List<org.openqa.selenium.WebElement> findElements(int numRetries)
findElements in class UIObjectValidatorCopyright © 2021. All rights reserved.