public abstract class AbstractTreeSelectable extends AbstractHierarchicalSelectable implements ITreeSelectable
contentObjects, DEFAULT_WAIT_TIMEparent| Constructor and Description |
|---|
AbstractTreeSelectable(Component parent) |
| Modifier and Type | Method and Description |
|---|---|
void |
collapseItem(TextMatchingCriterion criterion,
boolean collpaseChildren,
boolean verify)
Collapse the item according to the path.
|
protected abstract void |
collapseItem(TreeNode node,
boolean collpaseChildren) |
protected TreeNode |
convertTo(Element element)
Cast the Element to TreeNode.
|
void |
expandItem(TextMatchingCriterion criterion,
boolean expandChildren,
boolean verify)
Expand the item according to the path.
|
protected abstract 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() |
TreeNode |
getMatchedElement(TextMatchingCriterion criterion)
According to the "hierarchical path" to get a TreeNode object.
|
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 |
verifyItemExpension(TreeNode node,
boolean expectExpended) |
activateItem, getMatchedNode, getMatchedNode, selectItem, verifyItemSelectionactivateItem, clearCache, clickElement, getCacheableContent, selectItem, showOnPage, verifyContains, verifyItemSelected, verifyItemSelection, verifyItemSelection, waitAndVerifyItemSelected, waitElementReady, waitElementReadyisShowOnPage, isSupported, refresh, webelementclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitactivateItem, activateItem, selectItem, selectItem, verifyContains, verifyItemSelection, verifyItemSelectionclearCachegetSupportedClassNamespublic AbstractTreeSelectable(Component parent) throws SeleniumPlusException
parent - SeleniumPlusExceptionpublic TreeNode[] getContent() throws SeleniumPlusException
AbstractSelectableAbstractSelectable.getCacheableContent(),AbstractSelectable.getCacheableContent()getContent in interface IHierarchicalSelectablegetContent in interface ISelectablegetContent in interface ITreeSelectablegetContent in class AbstractSelectableSeleniumPlusExceptionAbstractSelectable.getCacheableContent()public void expandItem(TextMatchingCriterion criterion, boolean expandChildren, boolean verify) throws SeleniumPlusException
ITreeSelectableexpandItem in interface ITreeSelectablecriterion - TextMatchingCriterion, containing text, partialMatch, matchedIndex as search-criterion.expandChildren - boolean, if true then expand all the children of this node.verify - boolean, if true then verify the treepath has been expended.SeleniumPlusExceptionpublic void collapseItem(TextMatchingCriterion criterion, boolean collpaseChildren, boolean verify) throws SeleniumPlusException
ITreeSelectablecollapseItem in interface ITreeSelectablecriterion - TextMatchingCriterion, containing text, partialMatch, matchedIndex as search-criterion.collpaseChildren - boolean, if true then collapse all the children of this node.verify - boolean, if true then verify the treepath has been collapse.SeleniumPlusExceptionprotected void verifyItemExpension(TreeNode node, boolean expectExpended) throws SeleniumPlusException
node - TreeNodeexpectExpended - boolean, true then the node is expected as expended; false then the node is expected as collapsed.SeleniumPlusExceptionprotected abstract void expandItem(TreeNode node, boolean expandChildren) throws SeleniumPlusException
node - TreeNode, the node to expand.expandChildren - boolean, if true then expand all the children of this node.SeleniumPlusExceptionprotected abstract void collapseItem(TreeNode node, boolean collpaseChildren) throws SeleniumPlusException
node - TreeNode, the node to collapse.collpaseChildren - boolean, if true then collapse all the children of this node.SeleniumPlusExceptionprotected boolean verifyItemExpanded(TreeNode node) throws SeleniumPlusException
node - TreeNodeSeleniumPlusExceptionpublic TreeNode getMatchedElement(TextMatchingCriterion criterion) throws SeleniumPlusException
getMatchedElement in interface ISelectablegetMatchedElement in interface ITreeSelectablegetMatchedElement in class AbstractHierarchicalSelectablecriterion - TextMatchingCriterion, containing text, partialMatch, matchedIndex as search-criterion.SeleniumPlusException - if Element cannot be foundAbstractSelectable.getContent()protected TreeNode convertTo(Element element) throws SeleniumPlusException
convertTo in class AbstractHierarchicalSelectableelement - Element, the Element object to castSeleniumPlusException - if the Element object cannot be cast to HierarchicalElement.Copyright © SAS Institute. All Rights Reserved.