Modifier and Type | Method and Description |
---|---|
protected static java.lang.String[] |
SAFSPlus._resolveDDVariables(java.lang.String parameter,
java.lang.String... optionals)
Resolve parameters as DDVariable ONLY when
SAFSPlus.Misc.isExpressionsOn() is false.If SAFSPlus.Misc.isExpressionsOn() is true, we simply call SAFSPlus.combineParams(String[], String...) to put parameters into an array, later org.safs.model.tools.AbstractDriver will evaluate them. |
static java.awt.geom.Point2D.Double |
SAFSPlus.DriverCommand.CaptureMousePositionOnScreen(java.lang.String variableX,
java.lang.String variableY)
Capture the location of the mouse pointer relative to the screen and save the x and y components into variables.
|
static boolean |
SAFSPlus.DriverCommand.CloseApplicationMap(java.lang.String mapID)
By map ID, Close a opened Application Map in App Map chain.
|
static java.lang.String |
SAFSPlus.Misc.GetAppMapValue(Component component,
java.lang.String... optionals)
According to the component, get its "recognition string" defined in App Map file.
This component can be defined in one of the App Map file of a App Map chain. |
static java.lang.String |
SAFSPlus.Misc.GetAppMapValue(java.lang.String contstant)
Get the constant value defined in App Map chain
|
static java.lang.String |
SAFSPlus.Misc.GetAppMapValue(java.lang.String section,
java.lang.String item)
According to pair (section,item), get the value defined in App Map chain
|
static boolean |
SAFSPlus.Misc.isExpressionsOn()
Return if the expression evaluation is turned on.
|
static boolean |
SAFSPlus.Component.IsPropertyExist(Component comp,
java.lang.String property)
Verify if object's property exists or not.
|
static boolean |
SAFSPlus.DriverCommand.SetApplicationMap(java.lang.String mapID)
Load/Set/Change an Application Map and put it on top of App Map chain.
No action or command relying on the contents of a particular Application Map will work properly if the Map has not been previously loaded by this command or similar test initialization processes-- like an AppMap.order initialization file. |
(package private) static boolean |
SAFSPlus.DriverCommand.SetContext(Component component)
Give a Window or Component input focus.
|
(package private) static boolean |
SAFSPlus.DriverCommand.SetFocus(Component component)
Give a Window or Component input focus.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
AIComponent.doSetText(java.lang.String libName,
java.lang.String text,
boolean isCharacter,
boolean needVerify) |
protected void |
AIListViewActions.initComponent(org.openqa.selenium.WebElement we) |
protected void |
AIEditBoxActions.initComponent(org.openqa.selenium.WebElement we) |
protected void |
AIComponent.initComponent(org.openqa.selenium.WebElement we) |
protected void |
AIComboBoxActions.initComponent(org.openqa.selenium.WebElement we) |
protected void |
AICheckBoxActions.initComponent(org.openqa.selenium.WebElement we) |
protected void |
AIComponent.setText(java.lang.String libName,
boolean isCharacter,
java.lang.String text)
Clear the content of Component box first, and then enter the text into it.
|
Modifier and Type | Class and Description |
---|---|
class |
JSException
History:
NOV 27, 2014 (Lei Wang) Initial release. |
Modifier and Type | Method and Description |
---|---|
void |
DocumentClickCapture.addListeners(boolean startListening)
Inject the Document level event listeners if they are not already injected.
Does nothing if the listeners are already injected. This method will also start the polling thread to watch the javascript variable used to monitor 'click event' if it is called with parameter true. |
static SePlusInstallInfo |
SePlusInstallInfo.instance() |
protected SePlusInstallInfo |
SePlusInstallInfo.validate()
Validate the path of Selenium, Embedded Java, Library etc.
|
MouseEvent |
DocumentClickCapture.waitForClick(long secondsTimeout) |
Modifier and Type | Method and Description |
---|---|
protected void |
CFComponent._close()
Close the window.
|
protected void |
CFComponent._maximize()
Maximize the window.
|
protected void |
CFComponent._minimize()
Minimize the window.
|
static void |
CFComponent.captureHierarchicalData(java.util.Collection<java.lang.String> contents,
HierarchicalElement[] nodes,
java.lang.String indentMark,
int level)
Caputre the content of hierarchical structure like tree or menu.
|
protected void |
CFComboBox.captureItemsToFile(java.lang.String filename,
java.lang.String encoding)
Purpose: captureItemsToFile |
static java.lang.Object |
SeleniumPlus.executeAsyncScript(java.lang.String script,
java.lang.Object... scriptParams)
Following explanations come from Selenium Java Doc.
Execute an asynchronous piece of JavaScript in the context of the currently selected frame or window. |
static java.lang.Object |
SeleniumPlus.executeScript(java.lang.String script,
java.lang.Object... scriptParams)
Following explanations come from Selenium Java Doc.
Executes JavaScript synchronously in the context of the currently selected frame or window. |
(package private) static void |
DCDriverCommand.focusWindow(org.openqa.selenium.WebDriver webdriver)
TODO Need to move to class WDLibrary, this doesn't work yet!!!
|
static org.openqa.selenium.WebElement |
SeleniumPlus.getObject(Component component)
Find the WebElement according to the SAFS Component.
This method will use the last webdriver as search context to find element, if user wants to find an element within an other context, please call #getObject(SearchContext, String) |
static org.openqa.selenium.WebElement |
SeleniumPlus.getObject(org.openqa.selenium.SearchContext sc,
Component component)
Find the WebElement according to the SAFS Component.
|
static boolean |
SeleniumPlus.Misc.IsAlertPresent(java.lang.String... optionals)
Test the presence of an Alert Dialog associated with a browser.
This command will wait 2 seconds by default for the presence of Alert. |
static void |
WebDriverGUIUtilities.launchSeleniumServers()
Launch Selenium-Standalone-Sever or Selenium-Grid-Hub + Selenium-Grid-Nodes according to the configuration information.
If the grid-node information is provided, then the Grid-Hub + Node will be launched; otherwise, standalone server will be launched. Note: Before calling this method: 1. We should set the JVM property SelectBrowser.SYSTEM_PROPERTY_SELENIUM_HOST and SelectBrowser.SYSTEM_PROPERTY_SELENIUM_PORT .2. If we want to launch "grid+nodes", we should also set the JVM property SelectBrowser.SYSTEM_PROPERTY_SELENIUM_NODE . |
protected void |
CFScrollBar.localProcess()
Purpose: The scrollbar actions handled here are: OneDown OneLeft OneRight OneUp PageDown PageLeft PageRight PageUp |
protected void |
CFComponent.localProcess()
Handle the cache for component-library.
In this class CFComponent, component-library is not required for some keywords like Maximize, Minimize etc. So in the method CFComponent.process() of this class, when calling CFComponent.localProcess() , if any Exception is caught, just ignore it. But for subclass, component-library is required, so if this method is overrided, user needs to call super.localProcess() in a try-catch clause like following: |
protected void |
CFCheckBox.localProcess() |
protected Tree |
CFTree.newLibComponent(org.openqa.selenium.WebElement webelement)
sub class need to override this method and provide its own library Component.
|
protected TabControl |
CFTabControl.newLibComponent(org.openqa.selenium.WebElement webelement) |
protected ScrollBar |
CFScrollBar.newLibComponent(org.openqa.selenium.WebElement webelement) |
protected Menu |
CFMenuBar.newLibComponent(org.openqa.selenium.WebElement webelement) |
protected ListView |
CFListView.newLibComponent(org.openqa.selenium.WebElement webelement) |
protected EditBox |
CFEditBox.newLibComponent(org.openqa.selenium.WebElement webelement) |
protected Component |
CFComponent.newLibComponent(org.openqa.selenium.WebElement webelement)
sub class MUST to override this method and provide its own library Component.
|
protected ComboBox |
CFComboBox.newLibComponent(org.openqa.selenium.WebElement webelement) |
protected CheckBox |
CFCheckBox.newLibComponent(org.openqa.selenium.WebElement webelement) |
protected void |
CFComponent.setText(java.lang.String libName,
boolean isCharacter,
java.lang.String text)
Clear the content of Component box first, and then enter the text into it.
|
protected boolean |
CFComponent.showComponentAsMuchPossible(boolean verify,
boolean refresh)
Show the component in the browser's viewport as much as possible.
|
Modifier and Type | Class and Description |
---|---|
class |
ComboBoxException
History:
DEC 18, 2013 (Lei Wang) Initial release. |
Modifier and Type | Method and Description |
---|---|
static java.lang.Object |
SearchObject._getCurrentFrame(org.openqa.selenium.WebDriver webdriver)
Get the ID or name of current frame, or the frame object itself if there is no ID or name.
|
void |
Tree.activateItem(int index,
boolean verify,
org.openqa.selenium.Keys key,
java.awt.Point offset) |
void |
Menu.activateItem(int index,
boolean verify,
org.openqa.selenium.Keys key,
java.awt.Point offset) |
void |
ListView.activateItem(int index,
boolean verify,
org.openqa.selenium.Keys key,
java.awt.Point offset) |
void |
Tree.activateItem(TextMatchingCriterion criterion,
boolean verify,
org.openqa.selenium.Keys key,
java.awt.Point offset) |
void |
Menu.activateItem(TextMatchingCriterion criterion,
boolean verify,
org.openqa.selenium.Keys key,
java.awt.Point offset) |
void |
ListView.activateItem(TextMatchingCriterion criterion,
boolean verify,
org.openqa.selenium.Keys key,
java.awt.Point offset) |
static java.lang.String |
SearchObject.addJavaScriptEventListener(org.openqa.selenium.WebElement element,
java.lang.String eventName,
SearchObject.GenericJSEventListener listener) |
static void |
WDLibrary.alignToBottom(org.openqa.selenium.WebElement element)
Align the bottom of webelement to the bottom of browser.
|
static void |
WDLibrary.alignToTop(org.openqa.selenium.WebElement element)
Align the top of webelement to the top of browser.
|
static void |
WDLibrary.altLeftDrag(org.openqa.selenium.WebElement we,
java.awt.Point start,
java.awt.Point end)
Perform a left-drag from start point to end point relative to webelement (LeftUp corner)
with the "ALT" key pressed during the drag.
|
static java.awt.image.BufferedImage |
WDLibrary.captureBrowserArea(java.awt.Rectangle rectangle)
Capture the image on browser according to the rectangle relative to the browser.
|
static void |
WDLibrary.captureScreen(java.lang.String image)
Capture entire current HTML page
|
static void |
WDLibrary.captureScreen(org.openqa.selenium.WebElement we,
java.lang.String imgName,
java.lang.String fileformat)
Capture component image
|
void |
CheckBox.check() |
void |
CheckBox.Checkable.check()
Try to check the checkbox, and then verify if the checkbox
has been really checked.
|
void |
CheckBox.AbstractCheckable.check() |
static void |
WDLibrary.checkKnownIssue(java.lang.String keyword)
Check some known issue for a certain keyword.
NOTE: We should call WDLibrary.startBrowser(String, String, String, int, boolean, Map) before calling this method. |
static void |
SearchObject.checkNotNull(java.lang.Object object)
Check that the object is not null.
|
static void |
WDLibrary.clearClipboard()
Clear the clipboard on local machine or on machine where the RMI server is running.
|
void |
Component.clearComponentBox(java.lang.String libName)
Purpose: Remove the content from Component Box, like Edit Box, Combo box.
|
void |
EditBox.clearEditBox()
Purpose: Remove the content from EditBox.
|
static void |
WDLibrary.click(org.openqa.selenium.WebElement clickable,
org.openqa.selenium.Keys specialKey,
java.lang.String... optional)
Click(Mouse Left Button) the WebElement at center with a special key pressed.
|
static void |
WDLibrary.click(org.openqa.selenium.WebElement clickable,
java.awt.Point offset,
org.openqa.selenium.Keys specialKey,
int mouseButtonNumber,
java.lang.String... optional)
Click the WebElement at a certain coordination with a special key pressed.
Firstly it will try to get webelement's location and use Robot to click. |
static void |
WDLibrary.click(org.openqa.selenium.WebElement clickable,
java.awt.Point offset,
java.lang.String... optional)
Click(Mouse Left Button) the WebElement at a certain coordination.
|
static void |
WDLibrary.click(org.openqa.selenium.WebElement clickable,
java.lang.String... optional)
Click(Mouse Left Button) - Click on WebElement or WebDriver object at the center
|
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) |
static void |
WDLibrary.closeAlert(boolean accept,
java.lang.String... optionals)
Close the Alert-Modal-Dialog associated with a certain browser identified by ID.
It will get the cached webdriver according to the browser's id, and close the 'alert' through that webdriver. Note:This API will NOT change the current WebDriver. |
static void |
WDLibrary.closeBrowser()
Close the Browser/WebDriver associated with the last WebElement accessed.
|
void |
Tree.collapseItem(TextMatchingCriterion criterion,
boolean collpaseChildren,
boolean verify) |
protected void |
Tree.DefaultSelectable_Tree.collapseItem(TreeNode node,
boolean collpaseChildren)
Collapse the nodes (by double-click).
Note:The second parameter collpaseChildren is not used here. |
protected void |
Tree.SapSelectable_Tree.collapseItem(TreeNode node,
boolean collpaseChildren) |
static void |
WDLibrary.ctrlAltLeftDrag(org.openqa.selenium.WebElement we,
java.awt.Point start,
java.awt.Point end)
Perform a left-drag from start point to end point relative to webelement (LeftUp corner)
with the "CONTROL" and "ALT" key pressed during the drag.
|
static void |
WDLibrary.ctrlLeftDrag(org.openqa.selenium.WebElement we,
java.awt.Point start,
java.awt.Point end)
Perform a left-drag from start point to end point relative to webelement (LeftUp corner)
with the "CONTROL" key pressed during the drag.
|
static void |
WDLibrary.ctrlShiftLeftDrag(org.openqa.selenium.WebElement we,
java.awt.Point start,
java.awt.Point end)
Perform a left-drag from start point to end point relative to webelement (LeftUp corner)
with the "CONTROL" and "SHIFT" key pressed during the drag.
|
static void |
WDLibrary.doubleClick(org.openqa.selenium.WebElement clickable,
org.openqa.selenium.Keys specialKey,
java.lang.String... optional)
Double-Click(Mouse Left Button) the WebElement at the center with a special key pressed.
|
static void |
WDLibrary.doubleClick(org.openqa.selenium.WebElement clickable,
java.awt.Point offset,
org.openqa.selenium.Keys specialKey,
int mouseButtonNumber,
java.lang.String... optional)
Double-Click the WebElement at a certain coordination with a special key pressed.
Firstly it will try to get webelement's location and use Robot to double click. |
static void |
WDLibrary.doubleClick(org.openqa.selenium.WebElement clickable,
java.awt.Point offset,
java.lang.String... optional)
Double-Click(Mouse Left Button) the WebElement at a certain coordination.
|
static void |
WDLibrary.doubleClick(org.openqa.selenium.WebElement clickable,
java.lang.String... optional)
Double-Click(Mouse Left Button) the WebElement at the center.
|
static java.awt.Point[] |
WDLibrary.dragTo(org.openqa.selenium.WebElement fromElem,
org.openqa.selenium.WebElement toElem,
java.lang.String[] offsets,
int dndReleaseDelay) |
java.util.Map<java.lang.String,java.lang.Object> |
WDLibrary.WD_XMLHttpRequest.execute(IHttpRequest.HttpCommand command,
java.lang.String url,
boolean async,
java.util.Map<java.lang.String,java.lang.String> headers,
java.lang.String data)
Implementation: through
WDLibrary , execute JavaScriptFunctions.sendHttpRequest(Map) .For synchronous execution, all results will be stored in the returned Map result with one value of IHttpRequest.Key ;For asynchronous execution, except IHttpRequest.Key.READY_STATE , the other values will not be in the returned Map result,
they will be stored in javascript global variables: |
static java.lang.Object |
SearchObject.executeAsyncScript(java.lang.String script,
java.lang.Object... args) |
static java.lang.Object |
SearchObject.executeJavaScriptOnWebElement(java.lang.String script,
org.openqa.selenium.WebElement webelement,
java.lang.Object... args) |
static java.lang.Object |
SearchObject.executeScript(boolean synch,
java.lang.String script,
java.lang.Object... args)
Execute a section of java-script code.
It has the ability to detect a javascript error and throw an JSException. |
static java.lang.Object |
SearchObject.executeScript(java.lang.String script,
java.lang.Object... args) |
protected void |
Menu.DefaultSelectable_Menu.expandItem(MenuItem 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. |
protected void |
Menu.SapSelectable_Menu.expandItem(MenuItem item,
boolean expandChildren)
Expand the menuitem by click their ancestor item on the path level by level.
|
protected void |
Menu.SAS_HC_PushMenu.expandItem(MenuItem item,
boolean expandChildren)
Expand the menuitem by click their ancestor item on the path level by level.
|
void |
Tree.expandItem(TextMatchingCriterion criterion,
boolean expandChildren,
boolean verify) |
protected void |
Tree.DefaultSelectable_Tree.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. |
protected void |
Tree.SapSelectable_Tree.expandItem(TreeNode node,
boolean expandChildren) |
void |
Tree.ExpandTextNode(java.lang.String fullnode)
Deprecated.
due to deprecation of
Tree.node(String, boolean) |
static void |
WDLibrary.fireMouseEvent(MouseEvent event)
Attempts to fire (dispatchEvent) a MouseEvent.
|
static boolean |
WDLibrary.focus(org.openqa.selenium.WebElement element)
Attempt to SetFocus on the WebElement.
|
static org.openqa.selenium.WebDriver |
WDLibrary.getBrowserWithID(java.lang.String id)
Retrieves the WebDriver/Browser with the given id.
|
static org.openqa.selenium.WebDriver |
WDLibrary.getBrowserWithTitle(java.lang.String title)
Retrieves the WebDriver/Browser with the given title.
|
TreeNode[] |
Tree.DefaultSelectable_Tree.getCacheableContent() |
static java.lang.Object |
WDLibrary.getClipboard(java.awt.datatransfer.DataFlavor dataFlavor)
Get the content from the clipboard on local machine or on machine where the RMI server is running.
|
TreeNode[] |
Tree.getContent() |
TreeNode[] |
Tree.SapSelectable_Tree.getContent() |
Item[] |
TabControl.getContent()
Get all items of the tabcontrol.
|
Item[] |
TabControl.SapTabbable_TabStrip.getContent() |
Item[] |
TabControl.DojoTabbable_TabContainer.getContent() |
MenuItem[] |
Menu.getContent() |
MenuItem[] |
Menu.DefaultSelectable_Menu.getContent() |
MenuItem[] |
Menu.SapSelectable_Menu.getContent() |
MenuItem[] |
Menu.SAS_HC_PushMenu.getContent() |
Item[] |
ListView.getContent()
Get all items of the listview.
|
Item[] |
ListView.SapSelectable_ListBox.getContent() |
Item[] |
ListView.SapSelectable_m_List.getContent() |
Item[] |
ListView.DefaultSelectableList.getContent() |
Item[] |
ListView.SapSelectable_m_SelectList.getContent() |
static org.openqa.selenium.WebElement |
SearchObject.getCurrentFrame(org.openqa.selenium.WebDriver webdriver)
Get the current frame WebElement.
NOTE: The frame WebElement is attached to the parent frame, we cannot call any method on this frame WebElement (we are in itself) until we switch to its parent frame by calling webdriver.switchTo().parentFrame(). |
static java.lang.String |
SearchObject.getCurrentFrameID(org.openqa.selenium.WebDriver webdriver)
Get the ID of current frame.
|
static java.lang.String |
SearchObject.getCurrentFrameName(org.openqa.selenium.WebDriver webdriver)
Get the name of current frame.
|
java.util.List<java.lang.String> |
ComboBox.getDataList() |
static int |
WDLibrary.getDelayBetweenKeystrokes()
Gets the current delay in milliseconds between Robot keystrokes for both local and remote servers.
|
static java.lang.String |
SearchObject.DOJO.getDojoClassName(org.openqa.selenium.WebElement element) |
long |
RemoteDriver.getExecutionTime(java.lang.String command,
int timeoutWaitForComponent) |
protected static java.lang.String[] |
SearchObject.getFirstQualifierPair(java.lang.String RS)
Split a string by separator
SearchObject.assignSeparator , and return the result.If the RS contains multiple SearchObject.assignSeparator , this method will ONLYconsider the first separator, the string before that separator will be considered as qualifier; the string after will be all considered as value. |
java.lang.Object |
ComboBox.getItem(int index) |
static org.openqa.selenium.JavascriptExecutor |
SearchObject.getJS() |
static java.awt.Point |
WDLibrary.getLocation(org.openqa.selenium.WebElement webelement)
Get the web-element's location relative to the browser.
|
static java.awt.Point |
WDLibrary.getLocation(org.openqa.selenium.WebElement webelement,
boolean useOnPageFirstly)
Get the web-element's location relative to the browser client area.
|
TreeNode |
Tree.getMatchedElement(TextMatchingCriterion criterion) |
TreeNode |
Tree.DefaultSelectable_Tree.getMatchedElement(TextMatchingCriterion criterion)
This method override that of superclass.
|
MenuItem |
Menu.getMatchedElement(TextMatchingCriterion criterion) |
MenuItem |
Menu.DefaultSelectable_Menu.getMatchedElement(TextMatchingCriterion criterion)
This method override that of superclass.
|
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. |
protected static org.openqa.selenium.SearchContext |
SearchObject.getObjectByQualifier(org.openqa.selenium.SearchContext sc,
java.lang.String qualifier,
java.lang.String value)
According to pair(qualifier, value), find the matched WebElement.
Some qualifiers like "ID", can determine the WebElement uniquely and result only one WebElement; Other qualifiers may result several WebElement, the first one will be returned. |
protected static java.util.List<org.openqa.selenium.WebElement> |
SearchObject.getObjectsByQualifier(org.openqa.selenium.SearchContext sc,
java.lang.String qualifier,
java.lang.String value)
According to pair(qualifier, value), find all matching WebElements.
Some qualifiers like "ID", can determine the WebElement uniquely and result only one WebElement; Other qualifiers may result in several WebElements. |
static java.util.Map<java.lang.String,java.lang.Object> |
SearchObject.getProperties(org.openqa.selenium.WebElement element)
Retrieve all properties of an element--attributes, css values, property fields and certain property methods.
|
static java.lang.String |
SearchObject.getProperty(org.openqa.selenium.WebElement element,
java.lang.String property)
get the value of a property.
|
static java.awt.Rectangle |
WDLibrary.getRectangleOnScreen(org.openqa.selenium.WebElement we)
Get the screen rectangle for a WebElement object.
|
static java.lang.String |
SearchObject.SAP.getSAPClassName(org.openqa.selenium.WebElement element) |
static java.util.List<java.lang.String> |
SearchObject.SAP.getSAPClassNames(org.openqa.selenium.WebElement element) |
static java.awt.Point |
WDLibrary.getScreenLocation(org.openqa.selenium.WebElement webelement)
Get the absolute coordination on the screen of the webelement object.
Hope Selenium will give this function one day! |
static java.util.List<java.lang.String> |
ComboBox.getSelectedOptions(ComboBox.Selectable select)
Get all the selected options from the combo box,
meanwhile it will CHECK that something has been selected in the combo box. |
protected static java.lang.String |
SearchObject.getTagQualifierValue(java.lang.String RS)
Example: tag=span;propertycontains=innerHTML:some value
|
void |
ComboBox.hidePopup() |
void |
ComboBox.Selectable.hidePopup() |
void |
ComboBox.HtmlSelect.hidePopup() |
void |
ComboBox.SapSelect_ComboBox.hidePopup() |
void |
ComboBox.DojoSelect.hidePopup() |
static void |
WDLibrary.highlightElement(org.openqa.selenium.WebElement element)
Deprecated.
it is replaced by
SearchObject.highlight(WebElement) . |
void |
Component.initialize(org.openqa.selenium.WebElement component)
According to WebElement, initialize necessary resources including 'embedded object', 'attribute'
and 'operable object' etc. |
static org.openqa.selenium.WebDriver |
SearchObject.initializeBrowserWindow()
Initialize the
SearchObject.lastBrowserWindow , it is important for calculating the element location on screen.If we failed to create it then we will try to connect to current session from session file. |
static java.lang.Object |
WDLibrary.RBT.inputChars(RemoteDriver rd,
java.lang.String chars)
Type keyboard input characters unmodified.
|
static java.lang.Object |
WDLibrary.RBT.inputChars(java.lang.String chars)
Type keyboard input characters unmodified.
|
void |
Component.inputChars(java.lang.String keystrokes) |
static void |
WDLibrary.inputChars(org.openqa.selenium.WebElement we,
java.lang.String keystrokes)
Does NOT clear any existing text in the control, but does attempt to insure the window/control has focus.
|
void |
Component.inputComponentBoxChars(java.lang.String libName,
java.lang.String text)
Purpose: Set the text as the content of Component Box.
|
void |
Component.inputComponentBoxKeys(java.lang.String libName,
java.lang.String text)
Purpose: Set the text as the content of Component Box.
|
void |
EditBox.inputEditBoxChars(java.lang.String text)
Purpose: Set the text as the content of EditBox.
|
void |
EditBox.inputEditBoxKeys(java.lang.String text)
Purpose: Set the text as the content of EditBox.
|
static java.lang.Object |
WDLibrary.RBT.inputKeys(RemoteDriver rd,
java.lang.String keys)
Type keyboard input.
|
static java.lang.Object |
WDLibrary.RBT.inputKeys(java.lang.String keys)
Type keyboard input.
|
void |
Component.inputKeys(java.lang.String keystrokes)
Does NOT clear any existing text in the control, but does attempt to insure the window/control has focus.
|
static void |
WDLibrary.inputKeys(org.openqa.selenium.WebElement we,
java.lang.String keystrokes)
Does NOT clear any existing text in the control, but does attempt to insure the window/control has focus.
|
static void |
WDLibrary.inputKeysSAFS2Selenium(org.openqa.selenium.WebElement we,
java.lang.String keystrokes)
Does NOT clear any existing text in the control, but does attempt to insure the window/control has focus.
|
static boolean |
WDLibrary.isAlertPresent(java.lang.String... optionals)
Test the presence of Alert-Modal-Dialog associated with a certain browser identified by ID.
It will get the cached webdriver according to the browser's id, and get the 'alert' through that webdriver. Note:This API will NOT change the current WebDriver. |
boolean |
CheckBox.Checkable.isChecked() |
boolean |
CheckBox.AbstractCheckable.isChecked() |
boolean |
CheckBox.SapCheckable_CheckBox.isChecked() |
boolean |
RemoteDriver.isConnectionFine(java.lang.String command,
long maxDuration,
int timeoutWaitForComponent)
Test if the connection between WebDriver and the browser-driver is good enough to satisfy user's need.
|
(package private) static boolean |
SearchObject.DOJO.isDijitComponent(org.openqa.selenium.WebElement element)
To test if the WebElement represents a Dojo.Dijit component.
|
static boolean |
SearchObject.isDisplayed(org.openqa.selenium.WebElement element)
Check if the webelement is displayed (Selenium's API isDisplayed()).
|
static boolean |
SearchObject.isDojoDomain(org.openqa.selenium.WebElement element)
To test if the WebElement belongs to DOJO Domain.
|
(package private) static boolean |
SearchObject.SAP.isSapComponent(org.openqa.selenium.WebElement element)
To test if the WebElement represents a SAP OpenUI5 component.
|
static boolean |
SearchObject.isSAPDomain(org.openqa.selenium.WebElement element)
To test if the WebElement belongs to SAP OPENUI5 Domain.
|
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. |
static boolean |
SearchObject.isStale(org.openqa.selenium.WebElement element)
Test if a WebElement is stale(DOM element is deleted or is repaint or disappear).
|
protected boolean |
CheckBox.AbstractCheckable.isStatusOk(boolean bChecked)
Check if the checkbox's status is the same as the 'expected status'.
|
static boolean |
SearchObject.isVisible(org.openqa.selenium.WebElement element)
Get the visibility of the webelement.
Try Selenium's API isDisplayed() firstly, if it is false then try to test value of attribute 'visibility'. |
static void |
SearchObject.js_cleanError()
Clean the global variable
JavaScriptFunctions.SAFS_JAVASCRIPT_GLOBAL_ERROR_CODE_VAR ,reset it value to JavaScriptFunctions.ERROR_CODE_NOT_SET . |
protected static java.lang.Object |
SearchObject.js_executeWithTimeout(java.lang.String js,
long msTimeout) |
static int |
SearchObject.js_getErrorCode()
Get the value of global variable
JavaScriptFunctions.SAFS_JAVASCRIPT_GLOBAL_ERROR_CODE_VAR . |
static java.lang.Object |
SearchObject.js_getErrorObject()
Get the value of global variable
JavaScriptFunctions.SAFS_JAVASCRIPT_GLOBAL_ERROR_OBJECT_VAR . |
static void |
SearchObject.js_initError()
Initialize the global variable
JavaScriptFunctions.SAFS_JAVASCRIPT_GLOBAL_ERROR_CODE_VAR ,set it value to JavaScriptFunctions.ERROR_CODE_NOT_SET . |
static void |
SearchObject.js_setErrorCode(int error)
Set the value of global variable
JavaScriptFunctions.SAFS_JAVASCRIPT_GLOBAL_ERROR_CODE_VAR |
static void |
SearchObject.js_setErrorObject(java.lang.String errorMessage)
Set a string value to global variable
JavaScriptFunctions.SAFS_JAVASCRIPT_GLOBAL_ERROR_OBJECT_VAR |
static void |
WDLibrary.keyDown(org.openqa.selenium.Keys keycode)
Press down a Key by Selenium's Actions API.
|
static void |
WDLibrary.keyPress(int keycode)
Press down a Key.
|
static boolean |
WDLibrary.RBT.keyPress(int keycode)
Press down a Key locally if the current RemoteDriver is null or is local;
otherwise if the current RemoteDriver is remote, then press down a key remotely.
|
static boolean |
WDLibrary.RBT.keyPress(RemoteDriver rd,
int keycode)
Press down a Key locally if the RemoteDriver 'rd' is null or is local;
otherwise if the RemoteDriver 'rd' is remote, then press down a key remotely.
|
static void |
WDLibrary.keyRelease(int keycode)
Release a Key.
|
static boolean |
WDLibrary.RBT.keyRelease(int keycode)
Release a Key locally if the current RemoteDriver is null or is local;
otherwise if the current RemoteDriver is remote, then release a key remotely.
|
static boolean |
WDLibrary.RBT.keyRelease(RemoteDriver rd,
int keycode)
Release a Key locally if the RemoteDriver 'rd' is null or is local;
otherwise if the RemoteDriver 'rd' is remote, then release a key remotely.
|
static void |
WDLibrary.keyUp(org.openqa.selenium.Keys keycode)
Release a Key by Selenium's Actions API.
|
static void |
WDLibrary.leftDrag(org.openqa.selenium.WebElement we,
java.awt.Point start,
java.awt.Point end)
Perform a left-drag from start point to end point relative to webelement (LeftUp corner).
|
static void |
WDLibrary.loadModHeaderProfile(org.openqa.selenium.WebDriver driver,
java.lang.Object modheaderProfile)
Prerequisite: the extension "ModHeader" should have been installed into the chrome browser.
This method is going to load ModHeader's profile. Currently it opens the ModHeader's setting page to load the profile. In the furture we probably find a better way to set profile. |
static void |
WDLibrary.maximizeBrowserWindow()
Maximize current browser window
|
static void |
WDLibrary.minimizeBrowserWindow()
This implementation does NOT really minimize the window, it is a workaround.
Note: set the size to (0,0) can NOT minimize the window. |
static void |
WDLibrary.mouseHover(org.openqa.selenium.WebElement we,
java.awt.Point point,
int millisStay) |
static void |
WDLibrary.mouseWheel(int wheelAmt)
Scroll the mouse wheel.
|
static boolean |
WDLibrary.RBT.mouseWheel(int wheelAmt)
Scroll the mouse wheel by Java Robot.
The scroll happens locally if the current RemoteDriver is null or is local; otherwise if the current RemoteDriver is remote, then it happens remotely. |
static boolean |
WDLibrary.RBT.mouseWheel(RemoteDriver rd,
int wheelAmt)
Scroll the mouse wheel by Java Robot.
The scroll happens locally if the RemoteDriver 'rd' is null or is local; otherwise if the RemoteDriver 'rd' is remote, then it happens remotely. |
protected void |
CheckBox.AbstractCheckable.nativeSetChecked(boolean bChecked)
Call the native method provide by special checkbox to check/incheck.
Note: There are some callback methods associated with the checkbox, but setting property 'checked' may NOT invoke them, in the implementation of this method we should make sure those callbacks invoked (we can fire some events.) |
protected void |
CheckBox.SapCheckable_CheckBox.nativeSetChecked(boolean bChecked) |
void |
ScrollBar.page(int scrollbarType,
int steps) |
void |
ScrollBar.IScrollable.page(int scrollbarType,
int pages)
Try to scroll a page.
If the scrollbar is vertial, then scroll up or down. If the scrollbar is horizontal, then scroll left or right. |
void |
ScrollBar.SapScrollable_ScrollBar.page(int scrollbarType,
int pages) |
static void |
SearchObject.refreshJSExecutor()
Use the
SearchObject.lastUsedWD to refresh the SearchObject.lastJS . |
static void |
SearchObject.removeJavaScriptEventListener(org.openqa.selenium.WebElement element,
java.lang.String eventName,
java.lang.String listenerID)
Note: It is important to call this method in a finally clause to make sure that the polling thread stop.
|
static void |
WDLibrary.resizeBrowserWindow(int width,
int height)
Resize current browser window
|
static void |
WDLibrary.rightclick(org.openqa.selenium.WebElement clickable,
org.openqa.selenium.Keys specialKey,
java.lang.String... optional)
Click(Mouse Right Button) the WebElement at center with a special key pressed.
|
static void |
WDLibrary.rightclick(org.openqa.selenium.WebElement clickable,
java.awt.Point offset,
java.lang.String... optional)
Click(Mouse Right Button) the WebElement at a certain coordination.
|
static void |
WDLibrary.rightclick(org.openqa.selenium.WebElement clickable,
java.lang.String... optional)
Click(Mouse Right Button) - Click on WebElement or WebDriver object at the center
|
static void |
WDLibrary.rightDrag(org.openqa.selenium.WebElement we,
java.awt.Point start,
java.awt.Point end)
Perform a right-drag from start point to end point relative to webelement (LeftUp corner).
|
void |
ScrollBar.scroll(int scrollbarType,
int steps) |
void |
ScrollBar.IScrollable.scroll(int scrollbarType,
int steps)
Try to scroll number of steps.
If the scrollbar is vertial, then scroll up or down. If the scrollbar is horizontal, then scroll left or right. |
void |
ScrollBar.SapScrollable_ScrollBar.scroll(int scrollbarType,
int steps) |
static void |
WDLibrary.scrollBrowserWindowBy(int x,
int y,
org.openqa.selenium.WebElement element)
scroll browser window by x and/or y number of pixels.
|
static void |
WDLibrary.scrollBrowserWindowTo(int x,
int y,
org.openqa.selenium.WebElement element)
scroll browser window to x and/or y scroll position.
|
java.util.List<java.lang.String> |
ComboBox.select(java.lang.String item,
boolean verify,
boolean partialMatch,
boolean cleanSelectedItems)
Select the combo box by text.
First, try to check if the text exists in the combo box; if not found, a ComboBoxException will be thrown out with ComboBoxException.CODE_NO_MATCHING_ITEM .Then, try to select the text in the combo box. Finally, try to verify that the text has been selected; if not selected, a ComboBoxException will be thrown out with ComboBoxException.CODE_NOTHING_SELECTED or ComboBoxException.CODE_FAIL_VERIFICATION . |
java.util.List<java.lang.String> |
ComboBox.selectIndex(int index,
boolean verify,
boolean cleanSelectedItems)
Select the combo box by index.
First, try to check if the index is within the combo box; if not, a ComboBoxException will be thrown out with ComboBoxException.CODE_INDEX_OUTOF_RANGE .Then, try to select the index in the combo box. Finally, try to verify that the item of index has been selected; if not selected, a ComboBoxException will be thrown out with ComboBoxException.CODE_NOTHING_SELECTED or ComboBoxException.CODE_FAIL_VERIFICATION . |
void |
ListView.selectItem(int index,
boolean verify)
Try to select the item according to the index, and then verify if the item
has been really selected according to the parameter 'verify'.
|
void |
Tree.selectItem(int index,
boolean verify,
org.openqa.selenium.Keys key,
java.awt.Point offset,
int mouseButtonNumber) |
void |
Menu.selectItem(int index,
boolean verify,
org.openqa.selenium.Keys key,
java.awt.Point offset,
int mouseButtonNumber) |
void |
ListView.selectItem(int index,
boolean verify,
org.openqa.selenium.Keys key,
java.awt.Point offset,
int mouseButtonNumber)
Try to select the item according to the index, and then verify if the item
has been really selected according to the parameter 'verify'.
|
void |
ListView.selectItem(TextMatchingCriterion criterion,
boolean verify)
Try to select an item according to the name (fully or partially given),
and then verify if the tab has been really selected according to the parameter 'verify'.
|
void |
Tree.selectItem(TextMatchingCriterion criterion,
boolean verify,
org.openqa.selenium.Keys key,
java.awt.Point offset,
int mouseButtonNumber) |
void |
Menu.selectItem(TextMatchingCriterion criterion,
boolean verify,
org.openqa.selenium.Keys key,
java.awt.Point offset,
int mouseButtonNumber) |
void |
Menu.SAS_HC_PushMenu.selectItem(TextMatchingCriterion criterion,
boolean verify,
org.openqa.selenium.Keys key,
java.awt.Point offset,
int mouseButtonNumber) |
void |
ListView.selectItem(TextMatchingCriterion criterion,
boolean verify,
org.openqa.selenium.Keys key,
java.awt.Point offset,
int mouseButtonNumber)
Try to select an item according to the name (fully or partially given),
and then verify if the tab has been really selected according to the parameter 'verify'.
|
void |
TabControl.selectTab(int index,
boolean verify)
Try to select the tab according to the index, and then verify if the tab
has been really selected according to the parameter 'verify'.
|
void |
TabControl.selectTab(java.lang.String tabName,
boolean partialMatch,
int matchIndex,
boolean verify)
Try to select the tab according to the name (fully or partially given),
and then verify if the tab has been really selected according to the parameter 'verify'.
|
void |
Tree.SelectTextNode(java.lang.String fullnode)
Deprecated.
due to deprecation of
Tree.node(String, boolean) |
protected void |
CheckBox.AbstractCheckable.setChecked(boolean bChecked)
Set the value of property 'checked' for checkbox.
Here we will just call click to check/uncheck, if it doesn't work, then we will call CheckBox.AbstractCheckable.nativeSetChecked(boolean) to set it again. |
static void |
WDLibrary.setClipboard(java.lang.String content)
Set content to the clipboard on local machine or on machine where the RMI server is running.
|
static void |
WDLibrary.setDelayBetweenKeystrokes(int millisDelay)
Sets a delay in milliseconds between Robot keystrokes for both local and remote servers.
|
boolean |
Component.setFocus()
Purpose: setFocus |
static void |
WDLibrary.setPositionBrowserWindow(int x,
int y)
Set position of current browser window.
|
static void |
WDLibrary.setWaitReaction(boolean wait)
Set if wait for reaction to "input keys/chars" for both local and remote servers.
|
static void |
WDLibrary.setWaitReaction(boolean wait,
int tokenLength,
int dealyForToken,
int dealy)
Set if wait for reaction to "input keys/chars" for both local and remote servers.
|
static void |
WDLibrary.shiftLeftDrag(org.openqa.selenium.WebElement we,
java.awt.Point start,
java.awt.Point end)
Perform a left-drag from start point to end point relative to webelement (LeftUp corner)
with the "SHIFT" key pressed during the drag.
|
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) |
void |
ComboBox.showPopup() |
void |
ComboBox.Selectable.showPopup() |
void |
ComboBox.HtmlSelect.showPopup() |
void |
ComboBox.SapSelect_ComboBox.showPopup() |
void |
ComboBox.DojoSelect.showPopup() |
static void |
WDLibrary.startBrowser(java.lang.String BrowserName,
java.lang.String Url,
java.lang.String Id,
int timeout,
boolean isRemote)
Start browser
|
static void |
WDLibrary.startBrowser(java.lang.String browserName,
java.lang.String Url,
java.lang.String Id,
int timeout,
boolean isRemote,
java.util.Map<java.lang.String,java.lang.Object> extraParameters)
Start browser
|
static SearchObject.FrameElement |
SearchObject.switchFrameAsLastFrame(org.openqa.selenium.WebDriver webdriver,
java.lang.String frameRS)
Switch to a certain frame according to the parameter frameRS.
Also sets/replaces/clears the lastFrame FrameElement accordingly. |
static boolean |
SearchObject.switchWindow(java.lang.String title,
boolean... optionals)
Switch to a certain window according to its title, this method will search it from all opened browsers.
NOTE: Once successfully switched, SearchObject.lastUsedWD , SearchObject.lastJS may probably get changed. |
static boolean |
SearchObject.switchWindow(java.lang.String title,
int expectedMatchIndex,
boolean... optionals)
Switch to a certain window according to its title, this method will search it from all opened browsers.
NOTE: Once successfully switched, SearchObject.lastUsedWD , SearchObject.lastJS may probably get changed. |
static boolean |
SearchObject.switchWindow(java.lang.String browserID,
java.lang.String title,
boolean... optionals)
Switch to a certain window according to its title within browser identified by parameter 'browserID'.
NOTE: Once successfully switched, SearchObject.lastUsedWD , SearchObject.lastJS may probably get changed. |
static int |
SearchObject.switchWindow(java.lang.String browserID,
java.lang.String title,
int expectedMatchIndex,
boolean... optionals)
Switch to a certain window according to its title within browser identified by parameter 'browserID'.
NOTE: Once successfully switched, SearchObject.lastUsedWD , SearchObject.lastJS may probably get changed. |
(package private) static int |
WDLibrary.toJavaKeyCode(org.openqa.selenium.Keys key) |
void |
CheckBox.uncheck() |
void |
CheckBox.Checkable.uncheck()
Try to uncheck the checkbox, and then verify if the checkbox
has been really unchecked.
|
void |
CheckBox.AbstractCheckable.uncheck() |
static void |
SearchObject.useBrowser(java.lang.String ID)
Switch to browser indicated by ID.
|
void |
Tree.verifyContains(TextMatchingCriterion criterion) |
void |
Menu.verifyContains(TextMatchingCriterion criterion) |
void |
ListView.verifyContains(TextMatchingCriterion criterion)
Verify the item (specified by text, partialMatch and matchIndex) is contained in the listview.
|
protected boolean |
Tree.DefaultSelectable_Tree.verifyItemExpanded(TreeNode node) |
protected boolean |
Tree.SapSelectable_Tree.verifyItemExpanded(TreeNode node) |
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) |
void |
Tree.verifyItemSelection(int index,
boolean expectSelected) |
void |
Menu.verifyItemSelection(int index,
boolean expectSelected) |
void |
ListView.verifyItemSelection(int index,
boolean expectSelected)
Verify the item (specified by index) is selected or un-selected in the listview.
|
void |
Tree.verifyItemSelection(TextMatchingCriterion criterion,
boolean expectSelected) |
void |
Menu.verifyItemSelection(TextMatchingCriterion criterion,
boolean expectSelected) |
void |
ListView.verifyItemSelection(TextMatchingCriterion criterion,
boolean expectSelected)
Verify the item (specified by text, partialMatch and matchIndex) is selected or un-selected in the listview.
|
void |
Menu.verifyMenuItem(TextMatchingCriterion criterion,
java.lang.String expectedStatus) |
java.util.List<java.lang.String> |
ComboBox.verifySelected(java.lang.String item)
Verify that the item has been selected in the combo box, if not a
SeleniumPlusException will be thrown out with ComboBoxException.CODE_NOTHING_SELECTED or ComboBoxException.CODE_FAIL_VERIFICATION |
static java.util.List<java.lang.String> |
ComboBox.verifySelectedText(ComboBox.Selectable select,
java.lang.String item,
boolean partialMatch) |
static boolean |
WDLibrary.windowSetFocus(java.lang.String titleRegExp)
Set a specific Window matching the provided title to be the foreground window.
|
static boolean |
WDLibrary.windowSetFocus(org.openqa.selenium.WebDriver adriver)
Attempt to SetFocus on the topmost window for the provided WebDriver.
|
static boolean |
WDLibrary.windowSetFocus(org.openqa.selenium.WebElement element)
Attempt to SetFocus on the topmost window containing the WebElement.
|
Modifier and Type | Class and Description |
---|---|
class |
IgnoredStepException |
Modifier and Type | Method and Description |
---|---|
void |
ISelectable.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 |
AbstractListSelectable.activateItem(int index,
boolean verify,
org.openqa.selenium.Keys key,
java.awt.Point offset) |
void |
AbstractHierarchicalSelectable.activateItem(int index,
boolean verify,
org.openqa.selenium.Keys key,
java.awt.Point offset) |
void |
ISelectable.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'.
|
void |
AbstractSelectable.activateItem(TextMatchingCriterion criterion,
boolean verify,
org.openqa.selenium.Keys key,
java.awt.Point offset) |
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. |
void |
ITreeSelectable.collapseItem(TextMatchingCriterion criterion,
boolean collpaseChildren,
boolean verify)
Collapse the item according to the path.
|
void |
AbstractTreeSelectable.collapseItem(TextMatchingCriterion criterion,
boolean collpaseChildren,
boolean verify) |
protected abstract void |
AbstractTreeSelectable.collapseItem(TreeNode node,
boolean collpaseChildren) |
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) |
void |
ITreeSelectable.expandItem(TextMatchingCriterion criterion,
boolean expandChildren,
boolean verify)
Expand the item according to the path.
|
void |
AbstractTreeSelectable.expandItem(TextMatchingCriterion criterion,
boolean expandChildren,
boolean verify) |
protected abstract void |
AbstractTreeSelectable.expandItem(TreeNode node,
boolean expandChildren) |
protected Element[] |
AbstractSelectable.getCacheableContent()
Get the real-time content from WebElement.
For some components like Tree, Menu etc. |
TreeNode[] |
ITreeSelectable.getContent()
Get all tree nodes.
|
Element[] |
ISelectable.getContent()
Get all elements.
|
MenuItem[] |
IMenuSelectable.getContent()
Get all items withing a Menu.
|
Item[] |
IListSelectable.getContent()
Get all items.
|
HierarchicalElement[] |
IHierarchicalSelectable.getContent() |
TreeNode[] |
AbstractTreeSelectable.getContent() |
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() |
MenuItem[] |
AbstractMenuSelectable.getContent() |
Item[] |
AbstractListSelectable.getContent() |
TreeNode |
ITreeSelectable.getMatchedElement(TextMatchingCriterion criterion) |
Element |
ISelectable.getMatchedElement(TextMatchingCriterion criterion)
according to the element's label to get a Element object.
|
MenuItem |
IMenuSelectable.getMatchedElement(TextMatchingCriterion textMatchingCriterion) |
TreeNode |
AbstractTreeSelectable.getMatchedElement(TextMatchingCriterion criterion)
According to the "hierarchical path" to get a TreeNode object.
|
MenuItem |
AbstractMenuSelectable.getMatchedElement(TextMatchingCriterion criterion)
According to the "hierarchical path" to get a MenuItem object.
|
Item |
AbstractListSelectable.getMatchedElement(TextMatchingCriterion criterion) |
HierarchicalElement |
AbstractHierarchicalSelectable.getMatchedElement(TextMatchingCriterion criteria)
According to the "hierarchical path" to get a Element object.
The sub-class needs to provide an appropriate implementation of method AbstractSelectable.getContent() , on whichthis method depends. |
protected Item |
AbstractListSelectable.getMatchedItem(int index)
according to the index to get a Item object.
|
(package private) HierarchicalElement |
AbstractHierarchicalSelectable.getMatchedNode(HierarchicalElement[] hierarchicalStructure,
java.lang.String[] pathNodes,
boolean partialMatch,
int[] expectedMatchTimes)
According to a pathNodes (an array of path) and expectedMatchTimes (an array of int), find the matched node in a hierarchical structure.
If at certain level, the expectedMatchedTime is not satisfied, then the search will fail and just return a null. |
(package private) HierarchicalElement |
AbstractHierarchicalSelectable.getMatchedNode(HierarchicalElement[] hierarchicalStructure,
java.lang.String[] pathNodes,
boolean partialMatch,
MutableInteger matchedTimes,
int expectedMatchTimes)
According to a pathNodes (an array of path) and expectedMatchTimes, find the Nth-matched node in a hierarchical structure.
|
protected boolean |
EmbeddedObject.isShowOnPage(Element element)
To check if an Element is visible on page.
|
boolean |
DefaultRefreshable.isStale() |
void |
ISelectable.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 |
AbstractListSelectable.selectItem(int index,
boolean verify,
org.openqa.selenium.Keys key,
java.awt.Point offset,
int mouseButtonNumber) |
void |
AbstractHierarchicalSelectable.selectItem(int index,
boolean verify,
org.openqa.selenium.Keys key,
java.awt.Point offset,
int mouseButtonNumber) |
void |
ISelectable.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 |
AbstractSelectable.selectItem(TextMatchingCriterion criterion,
boolean verify,
org.openqa.selenium.Keys key,
java.awt.Point offset,
int mouseButtonNumber) |
void |
TreeNode.setChildren(HierarchicalElement[] children) |
void |
MenuItem.setChildren(HierarchicalElement[] children) |
void |
HierarchicalElement.setChildren(HierarchicalElement[] children) |
protected void |
AbstractSelectable.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. |
void |
ISelectable.verifyContains(TextMatchingCriterion criterion)
Verify the item (specified by text, partialMatch and matchIndex) is contained.
|
void |
AbstractSelectable.verifyContains(TextMatchingCriterion criterion) |
protected boolean |
AbstractTreeSelectable.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 |
AbstractTreeSelectable.verifyItemExpension(TreeNode node,
boolean expectExpended) |
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) |
void |
ISelectable.verifyItemSelection(int index,
boolean expectSelected)
Verify the item (specified by index) is selected or un-selected.
|
void |
AbstractListSelectable.verifyItemSelection(int index,
boolean expectSelected) |
void |
AbstractHierarchicalSelectable.verifyItemSelection(int index,
boolean expectSelected) |
void |
ISelectable.verifyItemSelection(TextMatchingCriterion criterion,
boolean expectSelected)
Verify the item (specified by text, partialMatch and matchIndex) is selected or un-selected.
|
void |
AbstractSelectable.verifyItemSelection(TextMatchingCriterion criterion,
boolean expectSelected) |
void |
IMenuSelectable.verifyMenuItem(TextMatchingCriterion criterion,
java.lang.String expectedStatus) |
void |
AbstractMenuSelectable.verifyMenuItem(TextMatchingCriterion criterion,
java.lang.String expectedStatus) |
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. |
Constructor and Description |
---|
AbstractHierarchicalSelectable(Component parent) |
AbstractListSelectable(Component parent) |
AbstractMenuSelectable(Component parent) |
AbstractSelectable(Component parent) |
AbstractTreeSelectable(Component parent) |
EmbeddedObject(Component parent) |
Copyright © SAS Institute. All Rights Reserved.