public static class Menu.SAS_HC_PushMenu extends AbstractMenuSelectable
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CLASS_NAME_PUSHMENU |
static java.lang.String[] |
supportedClazzes |
contentObjects, DEFAULT_WAIT_TIMEparent| Constructor and Description |
|---|
SAS_HC_PushMenu(Component component) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
expandItem(MenuItem item,
boolean expandChildren)
Expand the menuitem by click their ancestor item on the path level by level.
|
MenuItem[] |
getContent()
Try to get the cached content according to the WebElement.
If no cached content can be found, then get the real-time content by calling AbstractSelectable.getCacheableContent(),and put the content in the cache and return it. If subclass doesn't need this functionality, then just override this method. If subclass needs this functionality, then override method AbstractSelectable.getCacheableContent() |
java.lang.String[] |
getSupportedClassNames() |
protected void |
goHome()
Goes back to the home page
|
void |
selectItem(TextMatchingCriterion criterion,
boolean verify,
org.openqa.selenium.Keys key,
java.awt.Point offset,
int mouseButtonNumber)
Try to select (single-click) the item according to the item's text (fully or partially given),
and then verify if the item has been really selected according to the parameter 'verify'.
|
protected void |
showOnPage(Element element)
In this implementation, we call
expandItem(MenuItem, boolean) to clickitem on the path level by level. |
convertTo, getMatchedElement, verifyItemSelected, verifyMenuItem, waitAndVerifyItemSelectedactivateItem, selectItem, verifyItemSelectionactivateItem, clearCache, clickElement, getCacheableContent, verifyContains, verifyItemSelection, verifyItemSelection, waitElementReady, waitElementReadyisShowOnPage, isSupported, refresh, webelementclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitactivateItem, activateItem, selectItem, verifyContains, verifyItemSelection, verifyItemSelectionclearCachepublic static final java.lang.String CLASS_NAME_PUSHMENU
public static final java.lang.String[] supportedClazzes
public SAS_HC_PushMenu(Component component) throws SeleniumPlusException
SeleniumPlusExceptionpublic java.lang.String[] getSupportedClassNames()
public MenuItem[] getContent() throws SeleniumPlusException
AbstractSelectableAbstractSelectable.getCacheableContent(),AbstractSelectable.getCacheableContent()getContent in interface IHierarchicalSelectablegetContent in interface IMenuSelectablegetContent in interface ISelectablegetContent in class AbstractMenuSelectableSeleniumPlusExceptionAbstractSelectable.getCacheableContent()protected void goHome()
protected void expandItem(MenuItem item, boolean expandChildren) throws SeleniumPlusException
item - expandChildren - SeleniumPlusExceptionprotected void showOnPage(Element element) throws SeleniumPlusException
expandItem(MenuItem, boolean) to clickshowOnPage in class AbstractSelectableelement - Element, the element needs to be visible on pageSeleniumPlusExceptionexpandItem(MenuItem, boolean)public void selectItem(TextMatchingCriterion criterion, boolean verify, org.openqa.selenium.Keys key, java.awt.Point offset, int mouseButtonNumber) throws SeleniumPlusException
ISelectableselectItem in interface ISelectableselectItem in class AbstractSelectablecriterion - TextMatchingCriterion, containing text, partialMatch, matchedIndex as search-criterion.verify - boolean, if true then verify the selection;key - org.openqa.selenium.Keys, it is the key to press during selection.Keys.SHIFT, or Keys.CONTROL.offset - Point, the position relative to the up-left corner to click atmouseButtonNumber - int, the mouse-button-number representing right, middle, or left button.WDLibrary.MOUSE_BUTTON_LEFT or WDLibrary.MOUSE_BUTTON_RIGHTWDLibrary.MOUSE_BUTTON_MIDDLE.SeleniumPlusExceptionCopyright © SAS Institute. All Rights Reserved.