protected static class Tree.SapSelectable_Tree extends AbstractTreeSelectable
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CLASS_NAME_TREE |
static java.lang.String[] |
supportedClazzes |
contentObjects, DEFAULT_WAIT_TIMEparent| Constructor and Description |
|---|
SapSelectable_Tree(Component component) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
collapseItem(TreeNode node,
boolean collpaseChildren) |
protected void |
expandItem(TreeNode node,
boolean expandChildren) |
TreeNode[] |
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 |
showOnPage(Element element)
In this implementation, we call node.select() to show the node on page.
|
protected boolean |
verifyItemExpanded(TreeNode node)
Note:In subclass, we need to update the 'expanded' property of TreeNode.
Verify if a tree node is expanded or collapsed. |
protected void |
verifyItemSelected(Element element)
As we call SAP API TreeNode.select() to show a node on page, which will set the 'selected'
property to true.
|
collapseItem, convertTo, expandItem, getMatchedElement, verifyItemExpensionactivateItem, selectItem, verifyItemSelectionactivateItem, clearCache, clickElement, getCacheableContent, selectItem, verifyContains, verifyItemSelection, verifyItemSelection, waitAndVerifyItemSelected, waitElementReady, waitElementReadyisShowOnPage, isSupported, refresh, webelementclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitactivateItem, activateItem, selectItem, selectItem, verifyContains, verifyItemSelection, verifyItemSelectionclearCachepublic static final java.lang.String CLASS_NAME_TREE
public static final java.lang.String[] supportedClazzes
public SapSelectable_Tree(Component component) throws SeleniumPlusException
SeleniumPlusExceptionpublic java.lang.String[] getSupportedClassNames()
public TreeNode[] getContent() throws SeleniumPlusException
AbstractSelectableAbstractSelectable.getCacheableContent(),AbstractSelectable.getCacheableContent()getContent in interface IHierarchicalSelectablegetContent in interface ISelectablegetContent in interface ITreeSelectablegetContent in class AbstractTreeSelectableSeleniumPlusExceptionAbstractSelectable.getCacheableContent()protected void expandItem(TreeNode node, boolean expandChildren) throws SeleniumPlusException
expandItem in class AbstractTreeSelectablenode - TreeNode, the node to expand.expandChildren - boolean, if true then expand all the children of this node.SeleniumPlusExceptionprotected void collapseItem(TreeNode node, boolean collpaseChildren) throws SeleniumPlusException
collapseItem in class AbstractTreeSelectablenode - TreeNode, the node to collapse.collpaseChildren - boolean, if true then collapse all the children of this node.SeleniumPlusExceptionprotected boolean verifyItemExpanded(TreeNode node) throws SeleniumPlusException
AbstractTreeSelectableverifyItemExpanded in class AbstractTreeSelectablenode - TreeNodeSeleniumPlusExceptionprotected void verifyItemSelected(Element element) throws SeleniumPlusException
verifyItemSelected in class AbstractSelectableelement - Element, the element to verify that it is selected.SeleniumPlusException#selectItem(String, boolean, int, boolean, Keys, Point, int),
AbstractSelectable.clickElement(Element, Keys, Point, int, int),
showOnPage(Element)protected void showOnPage(Element element) throws SeleniumPlusException
verifyItemSelected(Element), if the element isSelected() then
we will not try to get the value for the real SAP TreeNode object.showOnPage in class AbstractSelectableelement - Element, the element needs to be visible on pageSeleniumPlusException#selectItem(String, boolean, int, boolean, Keys, Point, int),
AbstractSelectable.clickElement(Element, Keys, Point, int, int),
verifyItemSelected(Element)Copyright © SAS Institute. All Rights Reserved.