public class Tree extends Component implements ITreeSelectable
| Modifier and Type | Class and Description |
|---|---|
(package private) class |
Tree.DefaultSelectable_Tree |
protected static class |
Tree.SapSelectable_Tree |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ATTRIBUTE_DATA_EXPANDED
'data-expanded' attribute for tree http://demos.telerik.com/kendo-ui/treeview/index
|
(package private) ITreeSelectable |
treeListable |
accessible, anOperableObject, ATTRIBUTE_CLASS, ATTRIBUTE_DIJITPOPUPPARENT, ATTRIBUTE_ID, ATTRIBUTE_INDEX, ATTRIBUTE_MULTIPLE, ATTRIBUTE_NAME, ATTRIBUTE_TEXT, ATTRIBUTE_TYPE, ATTRIBUTE_VALUE, ATTRIBUTE_VISIBILITY, ATTRIBUTE_WIDGETID, delayGetContent, dijitpopupparent, operableObjects, TAG_HTML_INPUT, TAG_HTML_SELECT, VALUE_CHECKBOX_ATTRIBUTE_TYPE, VALUE_PASSWORD_ATTRIBUTE_TYPE, VALUE_RADIO_ATTRIBUTE_TYPE, VALUE_SUBMIT_ATTRIBUTE_TYPE, VALUE_TEXT_ATTRIBUTE_TYPE, VALUE_VISIBILITY_HIDDEN, VALUE_VISIBILITY_VISIBLE, waiRole, widgetidcssClass, id, map, object, possibleRecognitionStrings, searchContext, tagName, webelementATTRIBUTE_ARIA_ACTIVEDDESCENDANT, ATTRIBUTE_ARIA_ATOMIC, ATTRIBUTE_ARIA_AUTOCOMPLETE, ATTRIBUTE_ARIA_BUSY, ATTRIBUTE_ARIA_CHECKED, ATTRIBUTE_ARIA_CONTROLS, ATTRIBUTE_ARIA_DESCRIBEDBY, ATTRIBUTE_ARIA_DISABLED, ATTRIBUTE_ARIA_DRIPEFFECT, ATTRIBUTE_ARIA_EXPANDED, ATTRIBUTE_ARIA_FLOWTO, ATTRIBUTE_ARIA_GRABBED, ATTRIBUTE_ARIA_HASPOPUP, ATTRIBUTE_ARIA_HIDDEN, ATTRIBUTE_ARIA_INVALID, ATTRIBUTE_ARIA_LABEL, ATTRIBUTE_ARIA_LABELDEBY, ATTRIBUTE_ARIA_LEVEL, ATTRIBUTE_ARIA_LIVE, ATTRIBUTE_ARIA_MULTISELECTABLE, ATTRIBUTE_ARIA_ORIENTATION, ATTRIBUTE_ARIA_OWNS, ATTRIBUTE_ARIA_POSINSET, ATTRIBUTE_ARIA_PRESSED, ATTRIBUTE_ARIA_READONLY, ATTRIBUTE_ARIA_RELEVANT, ATTRIBUTE_ARIA_REQUIRED, ATTRIBUTE_ARIA_SELECTED, ATTRIBUTE_ARIA_SETSIZE, ATTRIBUTE_ARIA_SORT, ATTRIBUTE_ARIA_VALUEMAX, ATTRIBUTE_ARIA_VALUEMIN, ATTRIBUTE_ARIA_VALUENOW, ATTRIBUTE_ARIA_VALUETEXT, ATTRIBUTE_WAI_ROLE, WAI_ROLE_ALERT, WAI_ROLE_ALERTDIALOG, WAI_ROLE_APPLICATION, WAI_ROLE_ARTICLE, WAI_ROLE_BANNER, WAI_ROLE_BUTTON, WAI_ROLE_CHECKBOX, WAI_ROLE_COLUMNHEADER, WAI_ROLE_COMBOBOX, WAI_ROLE_COMPLEMENTARY, WAI_ROLE_CONTENTINFO, WAI_ROLE_DEFINITION, WAI_ROLE_DIALOG, WAI_ROLE_DIRECTORY, WAI_ROLE_DOCUMENT, WAI_ROLE_FORM, WAI_ROLE_GRID, WAI_ROLE_GRIDCELL, WAI_ROLE_GROUP, WAI_ROLE_HEADING, WAI_ROLE_IMG, WAI_ROLE_LINK, WAI_ROLE_LIST, WAI_ROLE_LISTBOX, WAI_ROLE_LISTITEM, WAI_ROLE_LOG, WAI_ROLE_MAIN, WAI_ROLE_MARQUEE, WAI_ROLE_MATH, WAI_ROLE_MENU, WAI_ROLE_MENUBAR, WAI_ROLE_MENUITEM, WAI_ROLE_MENUITEMCHECKBOX, WAI_ROLE_MENUITEMRADIO, WAI_ROLE_NAVIGATION, WAI_ROLE_NOTE, WAI_ROLE_OPTION, WAI_ROLE_PRESENTATION, WAI_ROLE_PROGRESSBAR, WAI_ROLE_RADIO, WAI_ROLE_RADIOGROUP, WAI_ROLE_REGION, WAI_ROLE_ROW, WAI_ROLE_ROWGROUP, WAI_ROLE_ROWHEADER, WAI_ROLE_SCROLLBAR, WAI_ROLE_SEARCH, WAI_ROLE_SEPARATOR, WAI_ROLE_SLIDER, WAI_ROLE_SPINBUTTON, WAI_ROLE_STATUS, WAI_ROLE_TAB, WAI_ROLE_TABLIST, WAI_ROLE_TABPANEL, WAI_ROLE_TEXTBOX, WAI_ROLE_TIMER, WAI_ROLE_TOOLBAR, WAI_ROLE_TOOLTIP, WAI_ROLE_TREE, WAI_ROLE_TREEGRID, WAI_ROLE_TREEITEM| Constructor and Description |
|---|
Tree(org.openqa.selenium.WebElement treeview) |
| Modifier and Type | Method and Description |
|---|---|
void |
activateItem(int index,
boolean verify,
org.openqa.selenium.Keys key,
java.awt.Point offset)
Try to activate (double-click) the item according to the index, and then verify if the item
has been really selected according to the parameter 'verify'.
|
void |
activateItem(TextMatchingCriterion criterion,
boolean verify,
org.openqa.selenium.Keys key,
java.awt.Point offset)
Try to activate (double-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 |
castOperable()
Cast the IOperable object to the specific one.
The subclasses will override this method as they know what specific Operable to use. Here a void implementation is given, as not all subclass need the specific Operable, such as EditBox. Cast may throw Exception, we should catch it if calling this method. This method should be called after Component.anOperableObject has been initialized. |
void |
collapseItem(TextMatchingCriterion criterion,
boolean collpaseChildren,
boolean verify)
Collapse the item according to the path.
|
protected IOperable |
createDefaultOperable()
Create the default IOperable object for a certain specific component.
It is different from the Component.createGenericOperable(), which will provide an IOperableto support the minimal generic functionalities, like GetGUIImage, Click, HoverMouse etc. Subclass COULD override this method to provide a default backup IOperable when other ways fail to create IOperable. |
protected IOperable |
createSAPOperable()
Create the IOperable object for SAP domain.
Subclass SHOULD override this method if SAP will be supported. |
void |
expandItem(TextMatchingCriterion criterion,
boolean expandChildren,
boolean verify)
Expand the item according to the path.
|
void |
ExpandTextNode(java.lang.String fullnode)
Deprecated.
due to deprecation of
node(String, boolean) |
TreeNode[] |
getContent()
Get all tree nodes.
|
TreeNode |
getMatchedElement(TextMatchingCriterion criterion)
According to a certain 'search condition', get the matched subitem within this Component.
This method just return a null. |
static boolean |
isTreeNodeExpanded(org.openqa.selenium.WebElement treenode) |
static boolean |
isTreeNodeSelected(org.openqa.selenium.WebElement treenode) |
static java.lang.String |
parseTreeNodeText(org.openqa.selenium.WebElement treenode)
For treenode, WebElement.getText() may return also the text of its children.
These text are separated by '\n', this method tries to get the text before the first '\n', which should be text of this tree node. |
void |
selectItem(int index,
boolean verify,
org.openqa.selenium.Keys key,
java.awt.Point offset,
int mouseButtonNumber)
Try to select (single-click) the item according to the index, and then verify if the item
has been really selected according to the parameter 'verify'.
|
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'.
|
void |
SelectTextNode(java.lang.String fullnode)
Deprecated.
due to deprecation of
node(String, boolean) |
void |
verifyContains(TextMatchingCriterion criterion)
Verify the item (specified by text, partialMatch and matchIndex) is contained.
|
void |
verifyItemSelection(int index,
boolean expectSelected)
Verify the item (specified by index) is selected or un-selected.
|
void |
verifyItemSelection(TextMatchingCriterion criterion,
boolean expectSelected)
Verify the item (specified by text, partialMatch and matchIndex) is selected or un-selected.
|
clearCache, clearComponentBox, createDOJOOperable, createGenericOperable, createHTMLOperable, createOperable, doubleCheckVerification, getDijitpopupparent, getValue, getWaiRole, getWidgetid, initialize, inputChars, inputComponentBoxChars, inputComponentBoxKeys, inputKeys, isAccessible, permitInvisible, setDijitpopupparent, setFocus, setWidgetid, updateFields, verifyComponentBoxgetAttribute, getCssClass, getEmbeddedObject, getId, getMap, getPossibleRecognitionStrings, getSearchContext, getTagName, getWebElement, initialize, isStale, refresh, setCssClass, setId, setPossibleRecognitionStrings, setSearchContext, setTagName, setWebElementclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclearCacheITreeSelectable treeListable
public static final java.lang.String ATTRIBUTE_DATA_EXPANDED
public Tree(org.openqa.selenium.WebElement treeview)
throws SeleniumPlusException
SeleniumPlusExceptionprotected void castOperable()
ComponentComponent.anOperableObject has been initialized.castOperable in class ComponentComponent.anOperableObject,
Component.updateFields()protected IOperable createSAPOperable()
ComponentcreateSAPOperable in class ComponentComponent.createOperable(WebElement)protected IOperable createDefaultOperable()
ComponentComponent.createGenericOperable(), which will provide an IOperablepublic static boolean isTreeNodeExpanded(org.openqa.selenium.WebElement treenode)
public static boolean isTreeNodeSelected(org.openqa.selenium.WebElement treenode)
public static java.lang.String parseTreeNodeText(org.openqa.selenium.WebElement treenode)
treenode - WebElement, represents the tree node.public void selectItem(TextMatchingCriterion criterion, boolean verify, org.openqa.selenium.Keys key, java.awt.Point offset, int mouseButtonNumber) throws SeleniumPlusException
ISelectableselectItem in interface ISelectablecriterion - 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_RIGHTWDLibrary.MOUSE_BUTTON_MIDDLE.SeleniumPlusExceptionpublic void selectItem(int index,
boolean verify,
org.openqa.selenium.Keys key,
java.awt.Point offset,
int mouseButtonNumber)
throws SeleniumPlusException
ISelectableselectItem in interface ISelectableindex - int, the index of the item to select, it is 0-based index.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_RIGHTWDLibrary.MOUSE_BUTTON_MIDDLE.SeleniumPlusExceptionpublic void activateItem(TextMatchingCriterion criterion, boolean verify, org.openqa.selenium.Keys key, java.awt.Point offset) throws SeleniumPlusException
ISelectableactivateItem in interface ISelectablecriterion - 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 atSeleniumPlusExceptionpublic void activateItem(int index,
boolean verify,
org.openqa.selenium.Keys key,
java.awt.Point offset)
throws SeleniumPlusException
ISelectableactivateItem in interface ISelectableindex - int, the index of the item to select, it is 0-based index.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 atSeleniumPlusExceptionpublic void verifyItemSelection(TextMatchingCriterion criterion, boolean expectSelected) throws SeleniumPlusException
ISelectableverifyItemSelection in interface ISelectablecriterion - TextMatchingCriterion, containing text, partialMatch, matchedIndex as search-criterion.expectSelected - boolean, true if the item is expected 'selected'; false if expected 'unselected'.SeleniumPlusException - if the verification fails.public void verifyItemSelection(int index,
boolean expectSelected)
throws SeleniumPlusException
ISelectableverifyItemSelection in interface ISelectableindex - int, the index of the item to select, it is 0-based index.expectSelected - boolean, true if the item is expected 'selected'; false if expected 'unselected'.SeleniumPlusException - if the verification fails.public void verifyContains(TextMatchingCriterion criterion) throws SeleniumPlusException
ISelectableverifyContains in interface ISelectablecriterion - TextMatchingCriterion, containing text, partialMatch, matchedIndex as search-criterion.SeleniumPlusException - if the verification fails.public TreeNode[] getContent() throws SeleniumPlusException
ITreeSelectablegetContent in interface IHierarchicalSelectablegetContent in interface ISelectablegetContent in interface ITreeSelectableSeleniumPlusExceptionpublic 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.SeleniumPlusExceptionpublic TreeNode getMatchedElement(TextMatchingCriterion criterion) throws SeleniumPlusException
ComponentgetMatchedElement in interface ISelectablegetMatchedElement in interface ITreeSelectablegetMatchedElement in class Componentcriterion - TextMatchingCriterion, the search conditionSeleniumPlusException - if Element cannot be found@Deprecated
public void SelectTextNode(java.lang.String fullnode)
throws SeleniumPlusException
node(String, boolean)fullnode - SeleniumPlusException@Deprecated
public void ExpandTextNode(java.lang.String fullnode)
throws SeleniumPlusException
node(String, boolean)fullnode - SeleniumPlusExceptionCopyright © SAS Institute. All Rights Reserved.