Package | Description |
---|---|
org.safs.selenium.webdriver | |
org.safs.selenium.webdriver.lib | |
org.safs.selenium.webdriver.lib.model |
Modifier and Type | Method and Description |
---|---|
static java.util.List<java.lang.String> |
CFComponent.convertElementArrayToList(Element[] elements)
Get the text of each element object in an array, and add it to a list, then return the list.
|
Modifier and Type | Method and Description |
---|---|
Element |
ListView.getMatchedElement(TextMatchingCriterion criterion) |
Element |
Component.getMatchedElement(TextMatchingCriterion criterion)
According to a certain 'search condition', get the matched subitem within this Component.
This method just return a null. |
Modifier and Type | Method and Description |
---|---|
protected void |
TabControl.SapTabbable_TabStrip.clickElement(Element element,
org.openqa.selenium.Keys key,
java.awt.Point offset,
int mouseButtonNumber,
int numberOfClick) |
protected void |
TabControl.DojoTabbable_TabContainer.clickElement(Element element,
org.openqa.selenium.Keys key,
java.awt.Point offset,
int mouseButtonNumber,
int numberOfClick) |
protected void |
ListView.SapSelectable_ListBox.clickElement(Element element,
org.openqa.selenium.Keys key,
java.awt.Point offset,
int mouseButtonNumber,
int numberOfClick) |
protected void |
ListView.SapSelectable_m_List.clickElement(Element element,
org.openqa.selenium.Keys key,
java.awt.Point offset,
int mouseButtonNumber,
int numberOfClick) |
protected void |
ListView.SapSelectable_m_SelectList.clickElement(Element element,
org.openqa.selenium.Keys key,
java.awt.Point offset,
int mouseButtonNumber,
int numberOfClick) |
protected boolean |
Menu.DefaultSelectable_Menu.isShowOnPage(Element element)
For menu, the menuitem is usually NOT shown on page.
The method EmbeddedObject.isShowOnPage(Element) in super-class willtry to search the related web-element (which doesn't exist yet) and will waste a lot of time. So override it, and just return false, so that we will always call Menu.DefaultSelectable_Menu.showOnPage(Element) to make it visible on page and can be selected correctly. |
protected boolean |
Menu.SapSelectable_Menu.isShowOnPage(Element element)
For menu, the menuitem is usually NOT shown on page.
The method EmbeddedObject.isShowOnPage(Element) in super-class willtry to search the related web-element (which doesn't exist yet) and will waste a lot of time. So override it, and just return false, so that we will always call Menu.SapSelectable_Menu.showOnPage(Element) to make it visible on page and can be selected correctly. |
protected void |
Tree.DefaultSelectable_Tree.showOnPage(Element element) |
protected void |
Tree.SapSelectable_Tree.showOnPage(Element element)
In this implementation, we call node.select() to show the node on page.
|
protected void |
Menu.DefaultSelectable_Menu.showOnPage(Element element) |
protected void |
Menu.SapSelectable_Menu.showOnPage(Element element)
In this implementation, we call
Menu.SapSelectable_Menu.expandItem(MenuItem, boolean) to clickitem on the path level by level. |
protected void |
Menu.SAS_HC_PushMenu.showOnPage(Element element)
In this implementation, we call
Menu.SAS_HC_PushMenu.expandItem(MenuItem, boolean) to clickitem on the path level by level. |
protected void |
ListView.SapSelectable_ListBox.showOnPage(Element element) |
protected void |
Tree.DefaultSelectable_Tree.verifyItemSelected(Element element) |
protected void |
Tree.SapSelectable_Tree.verifyItemSelected(Element element)
As we call SAP API TreeNode.select() to show a node on page, which will set the 'selected'
property to true.
|
protected void |
TabControl.SapTabbable_TabStrip.verifyItemSelected(Element element) |
protected void |
TabControl.DojoTabbable_TabContainer.verifyItemSelected(Element element) |
protected void |
ListView.SapSelectable_ListBox.verifyItemSelected(Element element) |
protected void |
ListView.SapSelectable_m_List.verifyItemSelected(Element element) |
protected void |
ListView.SapSelectable_m_SelectList.verifyItemSelected(Element element) |
Modifier and Type | Class and Description |
---|---|
class |
HierarchicalElement
This class represents a hierarchical structure like Tree or Menu etc.
History: Jun 23, 2014 (Lei Wang) Initial release. |
class |
Item
This provides a uniformed Item object to represent the item
within a container such as TabControl or ListView etc. It represents originally sap.ui.core.Item |
class |
MenuItem
History:
Jun 23, 2014 (Lei Wang) Initial release. |
class |
Option
This provide a uniformed Option object to represent the option
within a container such as ComboBox etc. Jan 15, 2014 (Lei Wang) Initial release. |
class |
OptionForHtmlSelect
This is an Option object to represent the <option> for html <select>
MAY 18, 2017 (Lei Wang) Initial release. |
class |
TreeNode
History:
May 30, 2014 (Lei Wang) Initial release. |
Modifier and Type | Method and Description |
---|---|
protected Element[] |
AbstractSelectable.getCacheableContent()
Get the real-time content from WebElement.
For some components like Tree, Menu etc. |
Element[] |
ISelectable.getContent()
Get all elements.
|
Element[] |
AbstractSelectable.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() |
Element |
ISelectable.getMatchedElement(TextMatchingCriterion criterion)
according to the element's label to get a Element object.
|
Modifier and Type | Method and Description |
---|---|
protected void |
AbstractSelectable.clickElement(Element element,
org.openqa.selenium.Keys key,
java.awt.Point offset,
int mouseButtonNumber,
int numberOfClick)
Try to get the Selenium WebElement object from parameter 'element', then click that WebElement object.
After calling this method, the parent of Element may become stale. |
protected TreeNode |
AbstractTreeSelectable.convertTo(Element element)
Cast the Element to TreeNode.
|
protected MenuItem |
AbstractMenuSelectable.convertTo(Element element)
Cast the Element to MenuItem.
|
protected HierarchicalElement |
AbstractHierarchicalSelectable.convertTo(Element element)
Cast the an Element object to HierarchicalElement.
Subclass needs to override this method to cast it to its own type. |
protected Item |
AbstractListSelectable.convertToItem(Element element) |
protected boolean |
EmbeddedObject.isShowOnPage(Element element)
To check if an Element is visible on page.
If the center of the element is in the container and is shown in the browser's client area, the element will be considered as visible on page. |
protected void |
AbstractSelectable.showOnPage(Element element)
Make the element is in 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. |
protected void |
AbstractSelectable.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) . |
protected void |
AbstractMenuSelectable.verifyItemSelected(Element element)
As it is hard to know if a MenuItem has been selected, it is so transient.
|
protected void |
AbstractListSelectable.verifyItemSelected(Element element) |
protected void |
AbstractSelectable.verifyItemSelection(Element element,
boolean expectSelected) |
protected void |
AbstractSelectable.waitAndVerifyItemSelected(Element element)
Wait Item ready, and verify the item has been selected.
Before verification, we need to refresh the parent if the page doesn't change. |
protected void |
AbstractMenuSelectable.waitAndVerifyItemSelected(Element element)
Override the method in super-class to turn off the post-verification, we just log a debug message.
|
protected void |
AbstractSelectable.waitElementReady(Element element)
Wait for element ready, means that element's attribute has been updated.
This method just wait 200 milliseconds, subclass may give a more detail implementation. |
protected void |
AbstractSelectable.waitElementReady(Element element,
int milliseconds)
Wait for element ready, means that element's attribute has been updated.
This method just wait some time, subclass may give a more detail implementation. When this method will be called? For example, before calling AbstractSelectable.verifyItemSelected(Element) , becauseAbstractSelectable.verifyItemSelected(Element) needs to check element's attributes. |
Copyright © SAS Institute. All Rights Reserved.