Package | Description |
---|---|
org.safs | |
org.safs.model | |
org.safs.model.components | |
org.safs.model.examples.minimal | |
org.safs.model.tools | |
org.safs.selenium.webdriver |
Modifier and Type | Method and Description |
---|---|
protected static boolean |
SAFSPlus.action(Component component,
java.lang.String command,
java.lang.String... params)
Execute a 'component action' on the component.
|
static boolean |
SAFSPlus.ListView.ActivateIndex(Component listview,
int index)
Double click an item value in ListView according to an index.
|
static boolean |
SAFSPlus.ListView.ActivateIndexItem(Component listview,
int index)
Double click an item value in ListView according to an index.
|
static boolean |
SAFSPlus.ListView.ActivatePartialMatch(Component listview,
java.lang.String partialText)
Double click an item value in ListView according to a partial text.
|
static boolean |
SAFSPlus.ListView.ActivatePartialMatch(Component listview,
java.lang.String partialText,
int matchIndex)
Double click an item value in ListView according to a partial text.
|
static boolean |
SAFSPlus.ListView.ActivateTextItem(Component listview,
java.lang.String text)
Double click an item value in ListView according to a full text.
|
static boolean |
SAFSPlus.ListView.ActivateTextItem(Component listview,
java.lang.String text,
int matchIndex)
Double click an item value in ListView according to a full text.
|
static boolean |
SAFSPlus.ListView.ActivateTextItemCoords(Component listview,
java.lang.String text,
java.lang.String coords)
Double click a text item at specific Coords.If there are more than one matched item, select the first one.
|
static boolean |
SAFSPlus.ListView.ActivateTextItemCoords(Component listview,
java.lang.String text,
java.lang.String coords,
int matchIndex)
Double click a text item at specific Coords.
|
static boolean |
SAFSPlus.ListView.ActivateUnverifiedTextItem(Component listview,
java.lang.String text)
Double click an item value in ListView according to a full text without verification.
|
static boolean |
SAFSPlus.ListView.ActivateUnverifiedTextItem(Component listview,
java.lang.String text,
int matchIndex)
Double click an item value in ListView according to a full text without verification.
|
static boolean |
SAFSPlus.ListView.ActivateUnverifiedTextItemCoords(Component listview,
java.lang.String text,
java.lang.String coords)
Double click an item at specific coordinate in ListView according to a full text without verification.
If there are more than one matched item, select the first one. |
static boolean |
SAFSPlus.ListView.ActivateUnverifiedTextItemCoords(Component listview,
java.lang.String text,
java.lang.String coords,
int matchIndex)
Double click an item at specific coordinate in ListView according to a full text without verification.
|
static boolean |
SAFSPlus.Component.AltClick(Component comp,
java.lang.String... params)
Alt-Click on any visible component.
|
static boolean |
SAFSPlus.Component.AltLeftDrag(Component comp,
java.lang.String coordinates)
A Alt left mouse drag is performed on the object based on the stored coordinates relative to this object.
|
static boolean |
SAFSPlus.Component.AssignPropertyVariable(Component comp,
java.lang.String property,
java.lang.String variable)
Assign object property to a variable.
|
static boolean |
SAFSPlus.ListView.CaptureItemsToFile(Component listview,
java.lang.String file)
Get all text value of items in ListView, and save them to a file by system encoding.
|
static boolean |
SAFSPlus.ComboBox.CaptureItemsToFile(Component combobox,
java.lang.String filename,
java.lang.String... params)
Capture all items in Combo Box to a file.
|
static boolean |
SAFSPlus.ListView.CaptureItemsToFile(Component listview,
java.lang.String file,
java.lang.String encoding)
Get all text value of items in ListView, and save them to a file.
|
static boolean |
SAFSPlus.Component.CaptureObjectDataToFile(Component comp,
java.lang.String fileName,
java.lang.String... params)
Copy the current contents of a component's data to a file.
|
static boolean |
SAFSPlus.Component.CapturePropertiesToFile(Component comp,
java.lang.String file,
java.lang.String... fileEncoding)
Copy all of the value properties a test object to a file.
|
static boolean |
SAFSPlus.Component.CapturePropertyToFile(Component comp,
java.lang.String property,
java.lang.String file,
java.lang.String... fileEncoding)
Copy a propertie's value of a test object to to a file.
|
static boolean |
SAFSPlus.Tree.CaptureTreeDataToFile(Component tree,
java.lang.String filename,
java.lang.String... params)
Copy the current contents of a tree or a branch to a file.
|
static boolean |
SAFSPlus.CheckBox.Check(Component checkbox)
Check a check-box.
|
static boolean |
SAFSPlus.Component.ClearCache(Component comp)
Some components like Tree, Menu may have a cache containing their content or time-consuming
resource, which will speed up the test. |
static boolean |
SAFSPlus.Component.Click(Component comp,
java.lang.String... params)
Click on any visible component.
|
static boolean |
SAFSPlus.ListView.ClickIndex(Component listview,
int index)
Double click an item value in ListView according to an index.
|
static boolean |
SAFSPlus.ListView.ClickIndexItem(Component listview,
int index)
Double click an item value in ListView according to an index.
|
static boolean |
SAFSPlus.Tree.ClickPartial(Component tree,
java.lang.String treepath)
Click a node according to a partial match of its path value.
|
static boolean |
SAFSPlus.Tree.ClickPartial(Component tree,
java.lang.String treepath,
int matchIndex)
Click a node according to a partial match of its path value.
|
static boolean |
SAFSPlus.TabControl.ClickTab(Component tabcontrol,
java.lang.String value)
Select a tab value in Tab Control and verify the value has been selected.
|
static boolean |
SAFSPlus.TabControl.ClickTabContains(Component tabcontrol,
java.lang.String value)
Select a tab value in Tab Control, the value will be matched partially.
|
static boolean |
SAFSPlus.Tree.ClickTextNode(Component tree,
java.lang.String treepath)
Click a node according to its path and verified the node has been selected.
|
static boolean |
SAFSPlus.Tree.ClickTextNode(Component tree,
java.lang.String treepath,
int matchIndex)
Click the Nth node according to its path and verified the node has been selected.
|
static boolean |
SAFSPlus.Tree.ClickUnverifiedTextNode(Component tree,
java.lang.String treepath)
Click a node according to its path, but will not verify the node has been selected.
|
static boolean |
SAFSPlus.Tree.ClickUnverifiedTextNode(Component tree,
java.lang.String treepath,
int matchIndex)
Click the Nth node according to its path, but will not verify the node has been selected.
|
static boolean |
SAFSPlus.Window.CloseWindow(Component window)
Close the specified WebBrowser window.
|
static boolean |
SAFSPlus.Tree.Collapse(Component tree,
java.lang.String treepath)
Collapse a node according to its path, and verify this node has been collapsed.
|
static boolean |
SAFSPlus.Tree.Collapse(Component tree,
java.lang.String treepath,
int matchIndex)
Collapse the Nth node according to its path, and verify this node has been collapsed.
|
static boolean |
SAFSPlus.Tree.CollapsePartial(Component tree,
java.lang.String treepath)
Collapse a node according to a partial match of its path value, and verify this node has been collapsed.
|
static boolean |
SAFSPlus.Tree.CollapsePartial(Component tree,
java.lang.String treepath,
int matchIndex)
Collapse a node according to a partial match of its path value, and verify this node has been collapsed.
|
static boolean |
SAFSPlus.Tree.CollapseUnverifiedTextNode(Component tree,
java.lang.String treepath)
Collapse a node according to its path, but will NOT verify this node has been collapsed.
|
static boolean |
SAFSPlus.Component.CtrlAltLeftDrag(Component comp,
java.lang.String coordinates)
A Ctrl Alt left mouse drag is performed on the object based on the stored coordinates relative to this object.
|
static boolean |
SAFSPlus.Component.CtrlClick(Component comp,
java.lang.String... params)
Control-Click on any visible component.
|
static boolean |
SAFSPlus.Tree.CtrlClickUnverifiedTextNode(Component tree,
java.lang.String treepath)
Click a node according to its path, at the same time the key 'CTRL' is pressed.
|
static boolean |
SAFSPlus.Component.CtrlLeftDrag(Component comp,
java.lang.String coordinates)
A Ctrl left mouse drag is performed on the object based on the stored coordinates relative to this object.
|
static boolean |
SAFSPlus.Component.CtrlRightClick(Component comp,
java.lang.String... params)
Control-Right-Click on any visible component.
|
static boolean |
SAFSPlus.Component.CtrlShiftLeftDrag(Component comp,
java.lang.String coordinates)
A Ctrl Shift left mouse drag is performed on the object based on the stored coordinates relative to this object.
|
static boolean |
SAFSPlus.Rest.DeleteCustom(Component comp,
java.lang.String... params)
Perform the "DELETE" method with Headers (defined by customer) on a REST service.
|
static boolean |
SAFSPlus.Component.DoubleClick(Component comp,
java.lang.String... params)
Double-Click on any visible component.
|
static boolean |
SAFSPlus.Tree.DoubleClickPartial(Component tree,
java.lang.String treepath)
Double click a node according to a partial match of its path value, and verify this node has been selected.
|
static boolean |
SAFSPlus.Tree.DoubleClickPartial(Component tree,
java.lang.String treepath,
int matchIndex)
Double click the Nth node according to a partial match of its path value, and verify this node has been selected.
|
static boolean |
SAFSPlus.Tree.DoubleClickTextNode(Component tree,
java.lang.String treepath)
Double click a node according to its path, and verify this node has been selected.
|
static boolean |
SAFSPlus.Tree.DoubleClickTextNode(Component tree,
java.lang.String treepath,
int matchIndex)
Double Click the Nth node according to its path, and verify this node has been selected.
|
static boolean |
SAFSPlus.Tree.DoubleClickUnverifiedTextNode(Component tree,
java.lang.String treepath)
Double click a node according to its path, but will NOT verify this node has been selected.
|
static boolean |
SAFSPlus.Tree.DoubleClickUnverifiedTextNode(Component tree,
java.lang.String treepath,
int matchIndex)
Double Click the Nth node according to its path, but will NOT verify this node has been selected.
|
static boolean |
SAFSPlus.Component.DragTo(Component from,
Component to,
java.lang.String... optionals)
A left mouse drag is performed from one object to another object based on the offsets values.
|
static boolean |
SAFSPlus.Rest.EndServiceSession(Component comp,
java.lang.String... params)
Stop a session for a REST service.
|
static boolean |
SAFSPlus.Component.ExecuteScript(Component comp,
java.lang.String script,
java.lang.String... scriptParams)
Execute a simple piece of javascript on component synchronously.
|
static boolean |
SAFSPlus.Tree.Expand(Component tree,
java.lang.String treepath)
Expand a node according to its path, and verify this node has been expanded.
|
static boolean |
SAFSPlus.Tree.Expand(Component tree,
java.lang.String treepath,
int matchIndex)
Expand the Nth node according to its path, and verify this node has been expanded.
|
static boolean |
SAFSPlus.Tree.ExpandPartial(Component tree,
java.lang.String treepath)
Expand a node according to a partial match of its path value, and verify this node has been expanded.
|
static boolean |
SAFSPlus.Tree.ExpandPartial(Component tree,
java.lang.String treepath,
int matchIndex)
Expand the Nth node according to a partial match of its path value, and verify this node has been expanded.
|
static boolean |
SAFSPlus.Tree.ExpandTextNode(Component tree,
java.lang.String node)
Expand tree text node.
|
static boolean |
SAFSPlus.Tree.ExpandUnverifiedTextNode(Component tree,
java.lang.String treepath)
Expand a node according to its path, but will NOT verify this node has been expanded.
|
static boolean |
SAFSPlus.Tree.ExpandUnverifiedTextNode(Component tree,
java.lang.String treepath,
int matchIndex)
Expand the Nth node according to its path, but will NOT verify this node has been expanded.
|
static boolean |
SAFSPlus.ListView.ExtendSelectionToTextItem(Component listview,
java.lang.String text)
Shift+Click and Verify a selection according to its text value.
|
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 boolean |
SAFSPlus.Rest.GetBinary(Component comp,
java.lang.String... params)
Perform the "GET" method with Headers containing "Accept : application/octet-stream" on a REST service, and verify the returned content is binary before returning it.
|
static boolean |
SAFSPlus.Component.GetComputedStyle(Component comp,
java.lang.String testfile)
Save component's computed CSS style to a test file.
|
static boolean |
SAFSPlus.Rest.GetCSS(Component comp,
java.lang.String... params)
Perform the "GET" method with Headers containing "Accept : text/css" on a REST service, and verify the returned content is css before returning it.
|
static boolean |
SAFSPlus.Rest.GetCustom(Component comp,
java.lang.String... params)
Perform the "GET" method with Headers (defined by customer) on a REST service, and get back the content.
|
static boolean |
SAFSPlus.Component.GetGUIImage(Component comp,
java.lang.String fileName,
java.lang.String... params)
Take a screenshot of windows or component.
See Detailed Reference |
static boolean |
SAFSPlus.Rest.GetHtml(Component comp,
java.lang.String... params)
Perform the "GET" method with Headers containing "Accept : text/html" on a REST service, and verify the returned content is html before returning it.
|
static boolean |
SAFSPlus.Rest.GetImage(Component comp,
java.lang.String... params)
Perform the "GET" method with Headers containing "Accept : image" on a REST service, and verify the returned content is image before returning it.
|
(package private) static java.lang.String |
SAFSPlus.ListView.GetItemID(Component listview,
int index) |
static boolean |
SAFSPlus.Rest.GetJson(Component comp,
java.lang.String... params)
Perform the "GET" method with Headers containing "Accept : application/json" on a REST service, and verify the returned content is json before returning it.
|
static boolean |
SAFSPlus.Rest.GetScript(Component comp,
java.lang.String... params)
Perform the "GET" method with Headers containing "Accept : application/javascript" on a REST service, and verify the returned content is javascript before returning it.
|
static boolean |
SAFSPlus.Rest.GetText(Component comp,
java.lang.String... params)
Perform the "GET" method with Headers containing "Accept : text/plain" on a REST service, and verify the returned content is text before returning it.
|
static boolean |
SAFSPlus.Component.GetTextFromGUI(Component comp,
java.lang.String variable,
java.lang.String... params)
Incorporate OCR technology to detect the text on a GUI component and save the text to a variable.
|
static boolean |
SAFSPlus.Rest.GetXML(Component comp,
java.lang.String... params)
Perform the "GET" method with Headers containing "Accept : text/xml" on a REST service, and verify the returned content is xml before returning it.
|
static boolean |
SAFSPlus.Component.GUIDoesExist(Component comp)
Verify the visual existence of a particular window and/or component.
|
static boolean |
SAFSPlus.Component.GUIDoesNotExist(Component comp)
Verify the visual non-existence of a particular window and/or component.
|
static boolean |
SAFSPlus.Rest.HeadBinary(Component comp,
java.lang.String... params)
Perform the "HEAD" method with Headers containing "Accept : application/octet-stream" on a REST service, and verify the returned content is binary before returning the header part.
|
static boolean |
SAFSPlus.Rest.HeadCSS(Component comp,
java.lang.String... params)
Perform the "HEAD" method with Headers containing "Accept : text/css" on a REST service, and verify the returned content is css before returning the header part.
|
static boolean |
SAFSPlus.Rest.HeadCustom(Component comp,
java.lang.String... params)
Perform the "HEAD" method (with Headers defined by user) on a REST service, and get back the header information.
|
static boolean |
SAFSPlus.Rest.HeaderXML(Component comp,
java.lang.String... params)
Deprecated.
It has been renamed to
SAFSPlus.Rest.HeadXML(org.safs.model.Component, String...) |
static boolean |
SAFSPlus.Rest.HeadHTML(Component comp,
java.lang.String... params)
Perform the "HEAD" method with Headers containing "Accept : text/html" on a REST service, and verify the returned content is html before returning the header part.
|
static boolean |
SAFSPlus.Rest.HeadImage(Component comp,
java.lang.String... params)
Perform the "HEAD" method with Headers containing "Accept : image" on a REST service, and verify the returned content is image before returning the header part.
|
static boolean |
SAFSPlus.Rest.HeadJSON(Component comp,
java.lang.String... params)
Perform the "HEAD" method with Headers containing "Accept : application/json" on a REST service, and verify the returned content is json before returning the header part.
|
static boolean |
SAFSPlus.Rest.HeadScript(Component comp,
java.lang.String... params)
Perform the "HEAD" method with Headers containing "Accept : application/javascript" on a REST service, and verify the returned content is javascript before returning the header part.
|
static boolean |
SAFSPlus.Rest.HeadText(Component comp,
java.lang.String... params)
Perform the "HEAD" method with Headers containing "Accept : text/plain" on a REST service, and verify the returned content is text before returning the header part.
|
static boolean |
SAFSPlus.Rest.HeadXML(Component comp,
java.lang.String... params)
Perform the "HEAD" method with Headers containing "Accept : text/xml" on a REST service, and verify the returned content is xml before returning the header part.
|
static boolean |
SAFSPlus.ComboBox.HideList(Component combobox)
Hide the combo box list.
|
static boolean |
SAFSPlus.Component.HoverMouse(Component comp,
java.lang.String... optionals)
Hover the mouse over a component.
|
static boolean |
SAFSPlus.Component.InputCharacters(Component comp,
java.lang.String textvalue)
Sends key characters to the specified Component.
|
static boolean |
SAFSPlus.Component.InputKeys(Component comp,
java.lang.String textvalue)
Sends keystrokes to the specified Component.
|
static boolean |
SAFSPlus.Misc.IsComponentExists(Component component,
java.lang.String... optionals)
Test if a Window or Component exists within a timeout.
|
static boolean |
SAFSPlus.Component.IsPropertyExist(Component comp,
java.lang.String property)
Verify if object's property exists or not.
|
static boolean |
SAFSPlus.Component.IsPropertyExist(Component comp,
java.lang.String property,
java.lang.String variable)
Verify if object's property exists or not.
|
static boolean |
SAFSPlus.Component.LeftDrag(Component comp,
java.lang.String coordinates)
A left mouse drag is performed on the object based on the stored coordinates relative to this object.
|
static boolean |
SAFSPlus.Component.LocateScreenImage(Component comp,
java.lang.String variable,
java.lang.String... optionals)
Store the location and dimensions of a component.
|
static boolean |
SAFSPlus.TabControl.MakeSelection(Component tabcontrol,
java.lang.String value)
Select a tab value in Tab Control and verify the value has been selected.
|
static boolean |
SAFSPlus.Window.Maximize(Component window)
Maximize current WebBrowser.
|
static boolean |
SAFSPlus.Window.Minimize(Component window)
Minimize current WebBrowser.
|
static boolean |
SAFSPlus.ScrollBar.OneDown(Component scrollbar,
java.lang.String... params)
Attempts to perform a ScrollLineDown on a scrollbar.
|
static boolean |
SAFSPlus.ScrollBar.OneLeft(Component scrollbar,
java.lang.String... params)
Attempts to perform a ScrollLeft on a scrollbar.
|
static boolean |
SAFSPlus.ScrollBar.OneRight(Component scrollbar,
java.lang.String... params)
Attempts to perform a ScrollRight on a scrollbar.
|
static boolean |
SAFSPlus.ScrollBar.OneUp(Component scrollbar,
java.lang.String... params)
Attempts to perform a ScrollLineUp on a scrollbar.
|
static java.lang.String |
SAFSPlus.DriverCommand.OnGUIExistsGotoBlockID(Component component,
java.lang.String blockid,
java.lang.String... optionals)
Goto the named block in the current table if a GUI component exists.
|
static java.lang.String |
SAFSPlus.DriverCommand.OnGUINotExistGotoBlockID(Component component,
java.lang.String blockid,
java.lang.String... optionals)
Goto the named block in the current table if a GUI component does not exist.
|
static boolean |
SAFSPlus.ScrollBar.PageDown(Component scrollbar,
java.lang.String... params)
Attempts to perform a ScrollPageDown on a scrollbar.
|
static boolean |
SAFSPlus.ScrollBar.PageLeft(Component scrollbar,
java.lang.String... params)
Attempts to perform a ScrollPageLeft on a scrollbar.
|
static boolean |
SAFSPlus.ScrollBar.PageRight(Component scrollbar,
java.lang.String... params)
Attempts to perform a ScrollPageRight on a scrollbar.
|
static boolean |
SAFSPlus.ScrollBar.PageUp(Component scrollbar,
java.lang.String... params)
Attempts to perform a ScrollPageUp on a scrollbar.
|
static boolean |
SAFSPlus.Rest.PatchBinary(Component comp,
java.lang.String... params) |
static boolean |
SAFSPlus.Rest.PatchCSS(Component comp,
java.lang.String... params) |
static boolean |
SAFSPlus.Rest.PatchCustom(Component comp,
java.lang.String... params) |
static boolean |
SAFSPlus.Rest.PatchHTML(Component comp,
java.lang.String... params) |
static boolean |
SAFSPlus.Rest.PatchImage(Component comp,
java.lang.String... params) |
static boolean |
SAFSPlus.Rest.PatchJSON(Component comp,
java.lang.String... params) |
static boolean |
SAFSPlus.Rest.PatchScript(Component comp,
java.lang.String... params) |
static boolean |
SAFSPlus.Rest.PatchText(Component comp,
java.lang.String... params) |
static boolean |
SAFSPlus.Rest.PatchXML(Component comp,
java.lang.String... params) |
static boolean |
SAFSPlus.Rest.PostBinary(Component comp,
java.lang.String... params) |
static boolean |
SAFSPlus.Rest.PostCSS(Component comp,
java.lang.String... params) |
static boolean |
SAFSPlus.Rest.PostCustom(Component comp,
java.lang.String... params) |
static boolean |
SAFSPlus.Rest.PostHTML(Component comp,
java.lang.String... params) |
static boolean |
SAFSPlus.Rest.PostImage(Component comp,
java.lang.String... params) |
static boolean |
SAFSPlus.Rest.PostJSON(Component comp,
java.lang.String... params) |
static boolean |
SAFSPlus.Rest.PostScript(Component comp,
java.lang.String... params) |
static boolean |
SAFSPlus.Rest.PostText(Component comp,
java.lang.String... params) |
static boolean |
SAFSPlus.Rest.PostXML(Component comp,
java.lang.String... params) |
static boolean |
SAFSPlus.Rest.PutBinary(Component comp,
java.lang.String... params) |
static boolean |
SAFSPlus.Rest.PutCSS(Component comp,
java.lang.String... params)
Perform the "PUT" method with Headers containing "Content-Type : text/css" on a REST service.
|
static boolean |
SAFSPlus.Rest.PutCustom(Component comp,
java.lang.String... params)
Perform the "PUT" method with Headers (defined by customer) on a REST service.
|
static boolean |
SAFSPlus.Rest.PutHTML(Component comp,
java.lang.String... params)
Perform the "PUT" method with Headers containing "Content-Type : text/html" on a REST service.
|
static boolean |
SAFSPlus.Rest.PutImage(Component comp,
java.lang.String... params) |
static boolean |
SAFSPlus.Rest.PutJSON(Component comp,
java.lang.String... params)
Perform the "PUT" method with Headers containing "Content-Type : application/json" on a REST service.
|
static boolean |
SAFSPlus.Rest.PutScript(Component comp,
java.lang.String... params)
Perform the "PUT" method with Headers containing "Content-Type : application/javascript" on a REST service.
|
static boolean |
SAFSPlus.Rest.PutText(Component comp,
java.lang.String... params)
Perform the "PUT" method with Headers containing "Content-Type : text/plain" on a REST service.
|
static boolean |
SAFSPlus.Rest.PutXML(Component comp,
java.lang.String... params)
Perform the "PUT" method with Headers containing "Content-Type : text/xml" on a REST service.
|
static boolean |
SAFSPlus.Rest.Request(Component comp,
java.lang.String... params)
Perform an HTTP method with Headers (defined by customer) on a REST service.
|
static boolean |
SAFSPlus.Window.Restore(Component window)
Restore current WebBrowser.
|
static boolean |
SAFSPlus.Component.RightClick(Component comp,
java.lang.String... params)
Right-Click on any visible component.
|
static boolean |
SAFSPlus.Tree.RightClickPartial(Component tree,
java.lang.String treepath)
Right click a node according to a partial match of its path value, and verify this node has been selected.
|
static boolean |
SAFSPlus.Tree.RightClickPartial(Component tree,
java.lang.String treepath,
int matchIndex)
Right click the Nth node according to a partial match of its path value, and verify this node has been selected.
|
static boolean |
SAFSPlus.ListView.RightClickTextItem(Component listview,
java.lang.String text)
RightClick (single click) an item value in ListView according to a full text.
|
static boolean |
SAFSPlus.ListView.RightClickTextItem(Component listview,
java.lang.String text,
int matchIndex)
RightClick (single click) an item value in ListView according to a full text.
|
static boolean |
SAFSPlus.ListView.RightClickTextItemCoords(Component listview,
java.lang.String text,
java.lang.String coords)
RightClick (single click) an item value in ListView according to a full text at specific coordinate.
If there are more than one matched item, select the first one. |
static boolean |
SAFSPlus.ListView.RightClickTextItemCoords(Component listview,
java.lang.String text,
java.lang.String coords,
int matchIndex)
RightClick (single click) an item value in ListView according to a full text at specific coordinate.
|
static boolean |
SAFSPlus.Tree.RightClickTextNode(Component tree,
java.lang.String treepath)
Right click a node according to its path, and verify this node has been selected.
|
static boolean |
SAFSPlus.Tree.RightClickTextNode(Component tree,
java.lang.String treepath,
int matchIndex)
Right click the Nth node according to its path, and verify this node has been selected.
|
static boolean |
SAFSPlus.Tree.RightClickUnverifiedTextNode(Component tree,
java.lang.String treepath)
Right click a node according to its path, but will NOT verify this node has been selected.
|
static boolean |
SAFSPlus.Tree.RightClickUnverifiedTextNode(Component tree,
java.lang.String treepath,
int matchIndex)
Right click the Nth node according to its path, but will NOT verify this node has been selected.
|
static boolean |
SAFSPlus.Component.RightDrag(Component comp,
java.lang.String coordinates)
A right mouse drag is performed on the object based on the stored coordinates relative to this object.
|
static boolean |
SAFSPlus.Component.SaveTextFromGUI(Component comp,
java.lang.String outputFile,
java.lang.String... params)
Incorporate OCR technology to detect the text on a GUI component and save the text to a file.
|
static boolean |
SAFSPlus.Tree.Select(Component tree,
java.lang.String treepath)
Select a node according to its path, and verify this node has been selected.
|
static boolean |
SAFSPlus.Tree.Select(Component tree,
java.lang.String treepath,
int matchIndex)
Select the Nth node according to its path, and verify this node has been selected.
|
static boolean |
SAFSPlus.ComboBox.Select(Component combobox,
java.lang.String itemtext,
java.lang.String... extraParams)
Select an item in Combo Box.
|
static boolean |
SAFSPlus.ListView.SelectAnotherPartialMatch(Component listview,
java.lang.String partialText)
Control+Click on an item according to a partial text match.
|
static boolean |
SAFSPlus.ListView.SelectAnotherTextItem(Component listview,
java.lang.String text)
Control+Click on an item by its text value.
|
static boolean |
SAFSPlus.ListView.SelectIndex(Component listview,
int index)
Select (single click) an item value in ListView according to an index.
|
static boolean |
SAFSPlus.ComboBox.SelectIndex(Component combobox,
int index,
java.lang.String... extraParams)
Select an item in Combo Box by index.
|
static boolean |
SAFSPlus.ListView.SelectIndexItem(Component listview,
int index)
Select (single click) an item value in ListView according to an index.
|
static boolean |
SAFSPlus.ListView.SelectIndexItemCoords(Component listview,
int index,
java.lang.String coords)
Select (single click) an item value in ListView according to an index at specific coordinates.
|
static boolean |
SAFSPlus.Menu.SelectMenuItem(Component menu,
java.lang.String path)
Select a menuItem according to its text value.
|
static boolean |
SAFSPlus.Menu.SelectMenuItem(Component menu,
java.lang.String path,
java.lang.String indexPath)
Select a menuItem according to its text value, it will select the Nth matched item.
|
static boolean |
SAFSPlus.Menu.SelectMenuItemContains(Component menu,
java.lang.String path)
Select a menuItem according to a partial match of its text value.
|
static boolean |
SAFSPlus.Menu.SelectMenuItemContains(Component menu,
java.lang.String path,
java.lang.String indexPath)
Select a menuItem according to a partial match of its text value, it will select the Nth matched item.
|
static boolean |
SAFSPlus.Tree.SelectPartial(Component tree,
java.lang.String treepath)
Select a node according to a partial match of its path value, and verify this node has been selected.
|
static boolean |
SAFSPlus.Tree.SelectPartial(Component tree,
java.lang.String treepath,
int matchIndex)
Select the Nth node according to a partial match of its path value, and verify this node has been selected.
|
static boolean |
SAFSPlus.ListView.SelectPartialMatch(Component listview,
java.lang.String partialText)
Select (single click) an item value in ListView according to a partial text.
|
static boolean |
SAFSPlus.ListView.SelectPartialMatch(Component listview,
java.lang.String partialText,
int matchIndex)
Select (single click) an item value in ListView according to a partial text.
|
static boolean |
SAFSPlus.ComboBox.SelectPartialMatch(Component combobox,
java.lang.String itemtext,
java.lang.String... extraParams)
Select a text item in Combo Box using a partial substring match.
|
static boolean |
SAFSPlus.TabControl.SelectTab(Component tabcontrol,
java.lang.String value)
Select a tab value in Tab Control and verify the value has been selected.
|
static boolean |
SAFSPlus.TabControl.SelectTabIndex(Component tabcontrol,
int index)
Select a tab by index in Tab Control and verify the index has been selected.
|
static boolean |
SAFSPlus.ListView.SelectTextItem(Component listview,
java.lang.String text)
Select (single click) an item value in ListView according to a full text.
|
static boolean |
SAFSPlus.ListView.SelectTextItem(Component listview,
java.lang.String text,
int matchIndex)
Select (single click) an item value in ListView according to a full text.
|
static boolean |
SAFSPlus.ListView.SelectTextItemCoords(Component listview,
java.lang.String text,
java.lang.String coords)
Select (single click) an item value in ListView according to a full text at specific coordinate.
If there are more than one matched item, select the first one. |
static boolean |
SAFSPlus.ListView.SelectTextItemCoords(Component listview,
java.lang.String text,
java.lang.String coords,
int matchIndex)
Select (single click) an item value in ListView according to a full text at specific coordinate.
|
static boolean |
SAFSPlus.Tree.SelectTextNode(Component tree,
java.lang.String node)
Select tree text node.
|
static boolean |
SAFSPlus.ComboBox.SelectUnverified(Component combobox,
java.lang.String itemtext,
java.lang.String... extraParams)
Select an item in Combo Box without verification of the selected item.
|
static boolean |
SAFSPlus.Menu.SelectUnverifiedMenuItem(Component menu,
java.lang.String path)
Select a menuItem according to its text value, without verification of menuItem's existance.
|
static boolean |
SAFSPlus.ComboBox.SelectUnverifiedPartialMatch(Component combobox,
java.lang.String itemtext,
java.lang.String... extraParams)
Select an item in Combo Box using a partial substring match, no verification of the 'selected item' will be attempted.
|
static boolean |
SAFSPlus.ListView.SelectUnverifiedTextItem(Component listview,
java.lang.String text)
Select (single click) an item value in ListView according to a full text without verification.
|
static boolean |
SAFSPlus.ListView.SelectUnverifiedTextItem(Component listview,
java.lang.String text,
int matchIndex)
Select (single click) an item value in ListView according to a full text without verification.
|
static boolean |
SAFSPlus.ListView.SelectUnverifiedTextItemCoords(Component listview,
java.lang.String text,
java.lang.String coords)
Select (single click) an item value in ListView according to a full text at specific coordinate without verification.
If there are more than one matched item, select the first one. |
static boolean |
SAFSPlus.ListView.SelectUnverifiedTextItemCoords(Component listview,
java.lang.String text,
java.lang.String coords,
int matchIndex)
Select (single click) an item value in ListView according to a full text at specific coordinate without verification.
|
static boolean |
SAFSPlus.Tree.SelectUnverifiedTextNode(Component tree,
java.lang.String treepath)
Select a node according to its path, but will NOT verify this node has been selected.
|
static boolean |
SAFSPlus.Tree.SelectUnverifiedTextNode(Component tree,
java.lang.String treepath,
int matchIndex)
Select the Nth node according to its path, but will NOT verify this node has been selected.
|
(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.
|
static boolean |
SAFSPlus.Window.SetFocus(Component window)
Set focus to the window
|
static boolean |
SAFSPlus.ListView.SetListContains(Component listview,
java.lang.String text,
java.lang.String variable)
Set a variable with the result of checking that a listview contains the provided item.
|
static boolean |
SAFSPlus.Window.SetPosition(Component window,
int x,
int y,
int width,
int height)
Set position and resize current WebBrowser window
|
static boolean |
SAFSPlus.Window.SetPosition(Component window,
java.lang.String status)
Set status of current WebBrowser window
See Detailed Reference |
static boolean |
SAFSPlus.EditBox.SetTextCharacters(Component editbox,
java.lang.String value)
Set the text of edit box with verifying.
|
static boolean |
SAFSPlus.ComboBox.SetTextValue(Component combobox,
java.lang.String value)
Set text value in Combo box.
|
static boolean |
SAFSPlus.EditBox.SetTextValue(Component editbox,
java.lang.String value)
Enter text value to EditBox with verifying.
|
static boolean |
SAFSPlus.Tree.SetTreeContainsNode(Component tree,
java.lang.String treepath,
java.lang.String variable)
Verify the existence of node according to its path, and set true to a variable if node exists, false if not.
|
static boolean |
SAFSPlus.Tree.SetTreeContainsPartialMatch(Component tree,
java.lang.String treepath,
java.lang.String variable)
Verify the existence of node according to a partial match of its path value, and set true to a variable if node exists, false if not.
|
static boolean |
SAFSPlus.EditBox.SetUnverifiedTextCharacters(Component editbox,
java.lang.String value)
Set the text of edit box without verifying.
|
static boolean |
SAFSPlus.EditBox.SetUnverifiedTextValue(Component editbox,
java.lang.String value)
Enter text value to EditBox without verifying.
|
static boolean |
SAFSPlus.Component.ShiftClick(Component comp,
java.lang.String... params)
Shift-Click on any visible component.
|
static boolean |
SAFSPlus.Tree.ShiftClickUnverifiedTextNode(Component tree,
java.lang.String treepath)
Click a node according to its path, at the same time the key 'SHIFT' is pressed.
|
static boolean |
SAFSPlus.Component.ShiftLeftDrag(Component comp,
java.lang.String coordinates)
A Shift left mouse drag is performed on the object based on the stored coordinates relative to this object.
|
static boolean |
SAFSPlus.ComboBox.ShowList(Component combobox)
Show the combo box list.
|
static boolean |
SAFSPlus.Component.ShowOnPage(Component comp,
java.lang.String... params)
Make the component visible on the page.
|
static boolean |
SAFSPlus.Rest.StartServiceSession(Component comp,
java.lang.String... params)
Start a session for a REST service..
|
static boolean |
SAFSPlus.CheckBox.UnCheck(Component checkbox)
UnCheck a check-box.
|
static boolean |
SAFSPlus.TabControl.UnverifiedClickTab(Component tabcontrol,
java.lang.String value)
Select a tab value in Tab Control without verification.
|
static boolean |
SAFSPlus.Component.VerifyComputedStyle(Component comp,
java.lang.String benchfile)
Verify computed CSS style against bench mark.
|
static boolean |
SAFSPlus.Component.VerifyGUIImageToFile(Component comp,
java.lang.String benchFile,
java.lang.String... params)
Verify the screen shot of a GUI component with a benchmark image file.
|
static boolean |
SAFSPlus.ListView.VerifyItemUnselected(Component listview,
java.lang.String text)
Verify that an item is not selected in ListView.
|
static boolean |
SAFSPlus.ListView.VerifyListContains(Component listview,
java.lang.String text)
Verify that an item is contained in ListView.
|
static boolean |
SAFSPlus.Menu.VerifyMenuItem(Component menu,
java.lang.String path)
Verify the existence of a menuItem according to its text value.
|
static boolean |
SAFSPlus.Menu.VerifyMenuItem(Component menu,
java.lang.String path,
java.lang.String expectedStatus,
java.lang.String indexPath)
Verify the existence of a menuItem according to its text value, it will verify the Nth matched item.
|
static boolean |
SAFSPlus.Menu.VerifyMenuItemContains(Component menu,
java.lang.String path)
Verify the existence of a menuItem found by partial text match.
|
static boolean |
SAFSPlus.Menu.VerifyMenuItemContains(Component menu,
java.lang.String path,
java.lang.String expectedStatus,
java.lang.String indexPath)
Verify the existence of a menuItem found by partial text match, it will verify the Nth matched item.
|
static boolean |
SAFSPlus.Tree.VerifyNodeUnselected(Component tree,
java.lang.String treepath)
Verify the selection of a node according to its path, node should be unselected.
|
static boolean |
SAFSPlus.Component.VerifyObjectDataToFile(Component comp,
java.lang.String benchFile,
java.lang.String... params)
Verify the current contents of a component's data with a benchmark file.
|
static boolean |
SAFSPlus.Component.VerifyPropertiesSubsetToFile(Component comp,
java.lang.String benchFile,
java.lang.String... params)
Compare/Verify the value properties of a test object with a benchmark file.
Only those property names and values in the benchmark file will be compared. |
static boolean |
SAFSPlus.Component.VerifyPropertiesToFile(Component comp,
java.lang.String benchFile,
java.lang.String... params)
Compare/Verify all of the value properties of a test object with a benchmark file.
|
static boolean |
SAFSPlus.Component.VerifyProperty(Component comp,
java.lang.String property,
java.lang.String value)
Verify object property.
|
static boolean |
SAFSPlus.Component.VerifyPropertyContains(Component comp,
java.lang.String property,
java.lang.String containedValue)
Verify that the value of an object property contains a string.
The property could be attribute or CSS property. |
static boolean |
SAFSPlus.Component.VerifyPropertyContains(Component comp,
java.lang.String property,
java.lang.String containedValue,
boolean caseSensitive)
Verify that the value of an object property contains a string.
The property could be attribute or CSS property. |
static boolean |
SAFSPlus.Component.VerifyPropertyToFile(Component comp,
java.lang.String property,
java.lang.String benchFile,
java.lang.String... params)
Verify the value of a single object property with a benchmark file.
|
static boolean |
SAFSPlus.ComboBox.VerifySelected(Component combobox,
java.lang.String item)
Verify specific item in Combo Box is selected.
|
static boolean |
SAFSPlus.ListView.VerifySelectedItem(Component listview,
java.lang.String text)
Verify that an item is selected in ListView.
|
static boolean |
SAFSPlus.Tree.VerifySelectedNode(Component tree,
java.lang.String treepath)
Verify the selection of a node according to its path, node should be selected.
|
static boolean |
SAFSPlus.Tree.VerifyTreeContainsNode(Component tree,
java.lang.String treepath)
Verify the existence of a node according to its path.
|
static boolean |
SAFSPlus.Tree.VerifyTreeContainsPartialMatch(Component tree,
java.lang.String treepath)
Verify the selection of a node according to a partial match of its path value.
|
static boolean |
SAFSPlus.DriverCommand.WaitForGUI(Component comp,
long time)
Wait for a Window or Component to become valid.
Note: This API doesn't fit for switching according to GUI existence, please use SAFSPlus.Misc.IsComponentExists(org.safs.model.Component, String...) instead.If the GUI doesn't become valid within timeout, this method will return false. If the execution doesn't end properly, this method will also return false. User cannot distinguish these 2 cases; and in the same time, a failure message will be written into Log. |
static boolean |
SAFSPlus.DriverCommand.WaitForGUI(Component component,
java.lang.String... optionals)
Wait for a Window or Component to become valid.
Note: This API doesn't fit for switching according to GUI existence, please use SAFSPlus.Misc.IsComponentExists(org.safs.model.Component, String...) instead.If the GUI doesn't become valid within timeout, this method will return false. If the execution doesn't end properly, this method will also return false. User cannot distinguish these 2 cases; and in the same time, a failure message will be written into Log. |
static boolean |
SAFSPlus.DriverCommand.WaitForGUIGone(Component component,
java.lang.String... optionals)
Wait for a Window or Component to disappear within timeout.
Note: This API doesn't fit for switching according to GUI existence, please use SAFSPlus.Misc.IsComponentExists(org.safs.model.Component, String...) instead.If the GUI never exists, this method will return false, a failure message will be written into Log. If the GUI exists but doesn't disappear within timeout, this method will return false, a warning message will be written into Log. If the execution doesn't end properly, this method will also return false, a failure message will be written into Log. User cannot distinguish these cases. |
static boolean |
SAFSPlus.DriverCommand.WaitForPropertyValue(Component component,
java.lang.String propertyName,
java.lang.String expectedValue,
java.lang.String... optionals)
Wait for a specific Window or Component property value to match an expected value.
|
static boolean |
SAFSPlus.DriverCommand.WaitForPropertyValueGone(Component component,
java.lang.String propertyName,
java.lang.String expectedValue,
java.lang.String... optionals)
Wait for a specific Window or Component property value to change from a known value.
|
Modifier and Type | Method and Description |
---|---|
Component |
Component.getParent() |
Constructor and Description |
---|
Component(Component parent,
java.lang.String name) |
Modifier and Type | Class and Description |
---|---|
class |
CheckBox |
class |
ComboBox |
class |
ComboEditBox |
class |
ComboListBox |
class |
Database |
class |
DatePicker |
class |
DotNetMenu |
class |
DotNetTable |
class |
DotNetTree |
class |
EditBox |
class |
FlexColor |
class |
FlexDate |
class |
FlexNumericStepper |
class |
FlexSlider |
class |
FPSpread |
class |
GenericMaster |
class |
GenericObject |
class |
GraphicControl |
class |
HTML |
class |
HTMLDocument |
class |
HTMLImage |
class |
HTMLLink |
class |
HTMLTable |
class |
JavaMenu |
class |
JavaTable |
class |
JavaTree |
class |
Label |
class |
ListBox |
class |
ListView |
class |
PopupMenu |
class |
ProgressBar |
class |
PushButton |
class |
RadioButton |
class |
ScrollBar |
class |
SSTree |
class |
TabControl |
class |
TableView |
class |
TIDRest |
class |
TimePicker |
class |
ToolBar |
class |
TreeView |
class |
UIComponent |
class |
VSFlexGrid |
class |
Window |
Modifier and Type | Field and Description |
---|---|
static Component |
MyAppMap.ReportsWin.Add
"Add" Component in "ReportsWin".
|
static Component |
MyAppMap.ApplicationConstants.ApplicationConstants
"ApplicationConstants" Window Component itself.
|
static Component |
MyAppMap.ReportsWin.Close
"Close" Component in "ReportsWin".
|
static Component |
MyAppMap.ReportsWin.Delete
"Delete" Component in "ReportsWin".
|
static Component |
MyAppMap.MainWin.Exit
"Exit" Component in "MainWin".
|
static Component |
MyAppMap.MainWin.MainWin
"MainWin" Window Component itself.
|
static Component |
MyAppMap.ApplicationConstants.Password
"Password" Component in "ApplicationConstants".
|
static Component |
MyAppMap.ReportsWin.ReportsWin
"ReportsWin" Window Component itself.
|
static Component |
MyAppMap.MainWin.Signoff
"Signoff" Component in "MainWin".
|
static Component |
MyAppMap.MainWin.TabPanel
"TabPanel" Component in "MainWin".
|
static Component |
MyAppMap.ReportsWin.Update
"Update" Component in "ReportsWin".
|
static Component |
MyAppMap.ApplicationConstants.URL
"URL" Component in "ApplicationConstants".
|
static Component |
MyAppMap.ApplicationConstants.User
"User" Component in "ApplicationConstants".
|
Modifier and Type | Method and Description |
---|---|
static TestRecordHelper |
Runner.action(Component comp,
java.lang.String keyword,
java.lang.String... params)
Run any SAFS ComponentFunction not already in a convenience wrapper routine.
|
TestRecordHelper |
AbstractRunner.action(Component comp,
java.lang.String command,
java.lang.String... params) |
static TestRecordHelper |
Runner.Click(Component comp,
java.lang.String... params)
A single click on an object.
|
static TestRecordHelper |
Runner.ControlClick(Component comp,
java.lang.String... params)
A CTRL-click on an object.
|
static TestRecordHelper |
Runner.DoubleClick(Component comp,
java.lang.String... params)
A double click on an object.
|
static TestRecordHelper |
Runner.InputCharacters(Component comp,
java.lang.String keys)
Sends keystrokes to the specified component.
|
static TestRecordHelper |
Runner.InputKeys(Component comp,
java.lang.String keys)
Sends keystrokes to the specified component.
|
static TestRecordHelper |
Runner.RightClick(Component comp,
java.lang.String... params)
A single RightClick on an object.
|
static TestRecordHelper |
Runner.Select(Component list,
java.lang.String... text)
Set the value of a supported EditBox or TextField.
|
static TestRecordHelper |
Runner.SetTextValue(Component textfield,
java.lang.String... text)
Set the value of a supported EditBox or TextField.
|
static TestRecordHelper |
Runner.SetUnverifiedTextCharacters(Component textfield,
java.lang.String... text)
Set the value of a supported EditBox or TextField.
|
static TestRecordHelper |
Runner.VerifyProperty(Component comp,
java.lang.String propertyName,
java.lang.String expectedValue,
boolean isCaseSensitive)
Verify the value of a property on the component.
|
static TestRecordHelper |
Runner.VerifyPropertyContains(Component comp,
java.lang.String propertyName,
java.lang.String substringValue,
boolean isCaseSensitive)
Verify the value of a property on the component contains a specific substring (partial match).
|
Modifier and Type | Method and Description |
---|---|
Component |
ComponentHolder.getComponent() |
Modifier and Type | Method and Description |
---|---|
static boolean |
SeleniumPlus.AltLeftDrag(Component comp,
java.lang.String coordinates)
A Alt left mouse drag is performed on the object based on the stored coordinates relative to this object.
|
static boolean |
SeleniumPlus.Click(Component comp,
java.lang.String... params)
Click on any visible component.
|
static boolean |
SeleniumPlus.ClickUnverified(Component comp,
java.awt.Point offset)
Click on any visible component without verification.
This API will not guarantee that the click does happen, it simply clicks. |
static boolean |
SeleniumPlus.CtrlAltLeftDrag(Component comp,
java.lang.String coordinates)
A Ctrl Alt left mouse drag is performed on the object based on the stored coordinates relative to this object.
|
static boolean |
SeleniumPlus.CtrlClick(Component comp,
java.lang.String... params)
Control-Click on any visible component.
|
static boolean |
SeleniumPlus.CtrlLeftDrag(Component comp,
java.lang.String coordinates)
A Ctrl left mouse drag is performed on the object based on the stored coordinates relative to this object.
|
static boolean |
SeleniumPlus.CtrlRightClick(Component comp,
java.lang.String... params)
Control-Right-Click on any visible component.
|
static boolean |
SeleniumPlus.CtrlShiftLeftDrag(Component comp,
java.lang.String coordinates)
A Ctrl Shift left mouse drag is performed on the object based on the stored coordinates relative to this object.
|
static java.lang.String |
SeleniumPlus.deduceFilterAreas(Component parent,
Component[] childrenToMask)
Generate a "filter string" (Filter=x1,y1,x2,y2 x1,y1,x2,y2) according to a parent component and an array of children.
The deduced "filter string" can be used in SeleniumPlus.GetGUIImage(org.safs.model.Component, String, String...) orSeleniumPlus.VerifyGUIImageToFile(org.safs.model.Component, String, String...) . |
static java.lang.String |
SeleniumPlus.deduceFilterAreas(Component parent,
Component[] childrenToMask)
Generate a "filter string" (Filter=x1,y1,x2,y2 x1,y1,x2,y2) according to a parent component and an array of children.
The deduced "filter string" can be used in SeleniumPlus.GetGUIImage(org.safs.model.Component, String, String...) orSeleniumPlus.VerifyGUIImageToFile(org.safs.model.Component, String, String...) . |
static boolean |
SeleniumPlus.DoubleClick(Component comp,
java.lang.String... params)
Double-Click on any visible component.
|
static boolean |
SeleniumPlus.ExecuteScript(Component comp,
java.lang.String script,
java.lang.String... scriptParams)
Execute a simple piece of javascript on component synchronously.
|
static boolean |
SeleniumPlus.GetGUIImage(Component comp,
java.lang.String fileName,
java.lang.String... params)
Take a screenshot of windows or component.
See Detailed Reference |
static boolean |
SeleniumPlus.GetGUIImage(Component comp,
java.lang.String fileName,
java.lang.String subArea,
Component[] childrenToMask)
Take a screenshot of windows or component and filter some children inside.
|
static boolean |
SeleniumPlus.GetGUIImage(Component comp,
java.lang.String fileName,
java.lang.String subArea,
Component[] childrenToMask)
Take a screenshot of windows or component and filter some children inside.
|
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.LeftDrag(Component comp,
java.lang.String coordinates)
A left mouse drag is performed on the object based on the stored coordinates relative to this object.
|
static boolean |
SeleniumPlus.RightClick(Component comp,
java.lang.String... params)
Right-Click on any visible component.
|
static boolean |
SeleniumPlus.RightDrag(Component comp,
java.lang.String coordinates)
A right mouse drag is performed on the object based on the stored coordinates relative to this object.
|
static boolean |
SeleniumPlus.ShiftClick(Component comp,
java.lang.String... params)
Shift-Click on any visible component.
|
static boolean |
SeleniumPlus.ShiftLeftDrag(Component comp,
java.lang.String coordinates)
A Shift left mouse drag is performed on the object based on the stored coordinates relative to this object.
|
static boolean |
SeleniumPlus.VerifyGUIImageToFile(Component comp,
java.lang.String benchFile,
java.lang.String... params)
Verify the screen shot of a GUI component with a benchmark image file.
|
static boolean |
SeleniumPlus.WaitForGUI(Component comp,
long time)
Wait for a Window or Component to become valid.
Note: This API doesn't fit for switching according to GUI existence, please use SAFSPlus.Misc.IsComponentExists(org.safs.model.Component, String...) instead.If the GUI doesn't become valid within timeout, this method will return false. If the execution doesn't end properly, this method will also return false. User cannot distinguish these 2 cases; and in the same time, a failure message will be written into Log. |
Copyright © SAS Institute. All Rights Reserved.