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_TIME
parent
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, verifyItemExpension
activateItem, selectItem, verifyItemSelection
activateItem, clearCache, clickElement, getCacheableContent, selectItem, verifyContains, verifyItemSelection, verifyItemSelection, waitAndVerifyItemSelected, waitElementReady, waitElementReady
isShowOnPage, isSupported, refresh, webelement
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
activateItem, activateItem, selectItem, selectItem, verifyContains, verifyItemSelection, verifyItemSelection
clearCache
public static final java.lang.String CLASS_NAME_TREE
public static final java.lang.String[] supportedClazzes
public SapSelectable_Tree(Component component) throws SeleniumPlusException
SeleniumPlusException
public java.lang.String[] getSupportedClassNames()
public TreeNode[] getContent() throws SeleniumPlusException
AbstractSelectable
AbstractSelectable.getCacheableContent()
,AbstractSelectable.getCacheableContent()
getContent
in interface IHierarchicalSelectable
getContent
in interface ISelectable
getContent
in interface ITreeSelectable
getContent
in class AbstractTreeSelectable
SeleniumPlusException
AbstractSelectable.getCacheableContent()
protected void expandItem(TreeNode node, boolean expandChildren) throws SeleniumPlusException
expandItem
in class AbstractTreeSelectable
node
- TreeNode, the node to expand.expandChildren
- boolean, if true then expand all the children of this node.SeleniumPlusException
protected void collapseItem(TreeNode node, boolean collpaseChildren) throws SeleniumPlusException
collapseItem
in class AbstractTreeSelectable
node
- TreeNode, the node to collapse.collpaseChildren
- boolean, if true then collapse all the children of this node.SeleniumPlusException
protected boolean verifyItemExpanded(TreeNode node) throws SeleniumPlusException
AbstractTreeSelectable
verifyItemExpanded
in class AbstractTreeSelectable
node
- TreeNodeSeleniumPlusException
protected void verifyItemSelected(Element element) throws SeleniumPlusException
verifyItemSelected
in class AbstractSelectable
element
- 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 AbstractSelectable
element
- 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.