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_TIME
parent
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, waitAndVerifyItemSelected
activateItem, selectItem, verifyItemSelection
activateItem, clearCache, clickElement, getCacheableContent, verifyContains, verifyItemSelection, verifyItemSelection, waitElementReady, waitElementReady
isShowOnPage, isSupported, refresh, webelement
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
activateItem, activateItem, selectItem, verifyContains, verifyItemSelection, verifyItemSelection
clearCache
public static final java.lang.String CLASS_NAME_PUSHMENU
public static final java.lang.String[] supportedClazzes
public SAS_HC_PushMenu(Component component) throws SeleniumPlusException
SeleniumPlusException
public java.lang.String[] getSupportedClassNames()
public MenuItem[] getContent() throws SeleniumPlusException
AbstractSelectable
AbstractSelectable.getCacheableContent()
,AbstractSelectable.getCacheableContent()
getContent
in interface IHierarchicalSelectable
getContent
in interface IMenuSelectable
getContent
in interface ISelectable
getContent
in class AbstractMenuSelectable
SeleniumPlusException
AbstractSelectable.getCacheableContent()
protected void goHome()
protected void expandItem(MenuItem item, boolean expandChildren) throws SeleniumPlusException
item
- expandChildren
- SeleniumPlusException
protected void showOnPage(Element element) throws SeleniumPlusException
expandItem(MenuItem, boolean)
to clickshowOnPage
in class AbstractSelectable
element
- Element, the element needs to be visible on pageSeleniumPlusException
expandItem(MenuItem, boolean)
public void selectItem(TextMatchingCriterion criterion, boolean verify, org.openqa.selenium.Keys key, java.awt.Point offset, int mouseButtonNumber) throws SeleniumPlusException
ISelectable
selectItem
in interface ISelectable
selectItem
in class AbstractSelectable
criterion
- 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_RIGHT
WDLibrary.MOUSE_BUTTON_MIDDLE
.SeleniumPlusException
Copyright © SAS Institute. All Rights Reserved.