class Tree.DefaultSelectable_Tree extends AbstractTreeSelectable
contentObjects, DEFAULT_WAIT_TIMEparent| Constructor and Description |
|---|
DefaultSelectable_Tree(Component parent) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
collapseItem(TreeNode node,
boolean collpaseChildren)
Collapse the nodes (by double-click).
Note:The second parameter collpaseChildren is not used here. |
protected void |
expandItem(TreeNode node,
boolean expandChildren)
Expand the nodes (by double-click) from the root level by level.
Note:The second parameter expandChildren is not used yet here. |
TreeNode[] |
getCacheableContent()
Get the real-time content from WebElement.
For some components like Tree, Menu etc. |
TreeNode |
getMatchedElement(TextMatchingCriterion criterion)
This method override that of superclass.
|
java.lang.String[] |
getSupportedClassNames() |
boolean |
isSupported(org.openqa.selenium.WebElement element)
Test if the element is supported.
|
protected void |
showOnPage(Element element)
Make the element is inside the container, and visible on the page.
For example, some element may not be visible if there are too many elements in its container; User can scroll to make the element visible on the page. User may need to wait for a while so that the element related object can be updated (like position-onscreen, visibility etc.) This method gives a default implementation: it will scroll and align the top of element to the top of container. Before this method is called, it is suggested to call EmbeddedObject.isShowOnPage(Element) firstly.This method will be override by sub-class. |
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)
Note:In subclass, we need to update the 'selected' property of Element.
Please call AbstractSelectable.waitAndVerifyItemSelected(Element) instead to verify selection,as the first method will also try the wait for element to be ready and call EmbeddedObject.refresh(boolean). |
collapseItem, convertTo, expandItem, getContent, verifyItemExpensionactivateItem, selectItem, verifyItemSelectionactivateItem, clearCache, clickElement, selectItem, verifyContains, verifyItemSelection, verifyItemSelection, waitAndVerifyItemSelected, waitElementReady, waitElementReadyisShowOnPage, refresh, webelementclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitactivateItem, activateItem, selectItem, selectItem, verifyContains, verifyItemSelection, verifyItemSelectionclearCachepublic DefaultSelectable_Tree(Component parent) throws SeleniumPlusException
parent - SeleniumPlusExceptionpublic boolean isSupported(org.openqa.selenium.WebElement element)
EmbeddedObjectisSupported in interface SupportableisSupported in class EmbeddedObjectelement - WebElement, the element to check.public java.lang.String[] getSupportedClassNames()
public TreeNode[] getCacheableContent() throws SeleniumPlusException
AbstractSelectableAbstractSelectable.getContent() so that the retrived contentAbstractSelectable.getContent() will use the content in the cache.getCacheableContent in class AbstractSelectableSeleniumPlusExceptionAbstractSelectable.getContent()public TreeNode getMatchedElement(TextMatchingCriterion criterion) throws SeleniumPlusException
getMatchedElement in interface ISelectablegetMatchedElement in interface ITreeSelectablegetMatchedElement in class AbstractTreeSelectablecriterion - TextMatchingCriterion, containing text, partialMatch, matchedIndex as search-criterion.SeleniumPlusException - if Element cannot be foundAbstractSelectable.getContent()protected void showOnPage(Element element) throws SeleniumPlusException
AbstractSelectableEmbeddedObject.isShowOnPage(Element) firstly.showOnPage in class AbstractSelectableelement - Element, the element needs to be visible on pageSeleniumPlusException#isShowOnPage(Element)}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
AbstractSelectableAbstractSelectable.waitAndVerifyItemSelected(Element) instead to verify selection,EmbeddedObject.refresh(boolean).verifyItemSelected in class AbstractSelectableelement - Element, the element to verify that it is selected.SeleniumPlusExceptionCopyright © SAS Institute. All Rights Reserved.