public class AIListViewActions extends AIComponent
Criteria
.SeleniumPlus.Assert, SeleniumPlus.CheckBox, SeleniumPlus.ComboBox, SeleniumPlus.Component, SeleniumPlus.Counters, SeleniumPlus.EditBox, SeleniumPlus.Files, SeleniumPlus.ListView, SeleniumPlus.Logging, SeleniumPlus.Menu, SeleniumPlus.Misc, SeleniumPlus.Rest, SeleniumPlus.ScrollBar, SeleniumPlus.Strings, SeleniumPlus.TabControl, SeleniumPlus.Tree, SeleniumPlus.WDTimeOut, SeleniumPlus.Window
SAFSPlus.DriverCommand
Modifier and Type | Field and Description |
---|---|
protected ListView |
listview |
static java.lang.String |
TYPE
"List"
|
libComponent, MAX_TRY_DEFAULT, maxRetry
_abort_on_assert_failure, _abort_on_find_failure, _case_does_not_matter, _log_details, _substring_matches_allowed, _using_cached_component, cachedLibComponents, DEFAULT_SEPLUS_AI_DEFINITIONS, frames, frameTree, GLUE_OPT, searchContext
PRODUCT_DESCRIPTION, PRODUCT_NAME, PRODUCT_VERSION, Runner, TEMP_SELENIUM_PLUS_RS_VAR
_autorun, _autorunClassProvided, _injectDataAwareness, _isInjected, _isSPC, _junit, allowExit, ARG_AUTORUN, ARG_AUTORUN_CLASS, ARG_JUNIT, ARG_SAFSVAR, DefaultRunner, exitCode, normalizeTextForInput, prevResults, RELATIVE_TO_PARENT, RELATIVE_TO_SCREEN, springApplicationContext
Constructor and Description |
---|
AIListViewActions() |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
getType() |
protected void |
initComponent(org.openqa.selenium.WebElement we) |
protected void |
localProcess(java.lang.String action,
java.util.List<java.lang.String> parameters)
Handle the specific keywords against a specific component.
|
void |
select_index_in_the_list(java.lang.String action,
java.lang.String index,
java.lang.String criteria)
Handle the keyword
ActivateIndex
ActivateIndexItem
ClickIndex
ClickIndexItem
SelectIndex
SelectIndexItem
SelectIndexItemCoords
of ListViewFunctions against the ListView matching the provided textlabel.
|
checkForCoord, clearHighlight, doSetText, generateCriteria, generateCriteria, getComponentRectangle, highlight, ignoreCache, process, process, process, setText
addNonRepeatedElements, convertElementArrayToList, deduceBenchFile, deduceDiffFile, deduceProjectFile, deduceTestFile, findElementInParent, findElements, findElementsInParent, findSelectableItemFromText, getCachedLibComponent, getFirstIFrame, getXpathType, initializeFrames, logElementIdInfo, logElementProperties, logListElementsInfo, logMapKeyValues, main, matched, resetFrames, runCukesTest, runCukesTest, runCukesTest, runTest, saveCachedLibComponent
AbortTest, AltLeftDrag, Click, ClickUnverified, CtrlAltLeftDrag, CtrlClick, CtrlLeftDrag, CtrlRightClick, CtrlShiftLeftDrag, deduceFilterAreas, DoubleClick, executeAsyncScript, ExecuteScript, executeScript, GetGUIImage, GetGUIImage, getObject, getObject, GetVariableValue, Highlight, HoverScreenLocation, LeftDrag, Pause, PrintTestCaseSummary, PrintTestSuiteSummary, RightClick, RightDrag, SetVariableValue, ShiftClick, ShiftLeftDrag, StartTestCase, StartTestSuite, StartWebBrowser, StopTestCase, StopWebBrowser, SwitchWebBrowser, TypeChars, TypeEncryption, TypeKeys, VerifyBinaryFileToFile, VerifyFileToFile, VerifyGUIImageToFile, VerifyTextFileToFile, VerifyValueContains, VerifyValueContainsIgnoreCase, VerifyValueDoesNotContain, VerifyValues, VerifyValuesIgnoreCase, VerifyValuesNotEqual, WaitForGUI, WebDriver
_getMappedValue, _getVariable, _processArgs, _resolveDDVariables, _setVariable, action, actionGUILess, autorun, back, combineParams, command, debug, error, forward, getAllowExit, getExitCode, getRunner, iDriver, normalizeTextForInput, quote, quotePath, replaceSeparator, setAllowExit, setExitCode, setLeveledTest, setNormalizeTextForInput, setRunner, testStatusCode
public static final java.lang.String TYPE
protected ListView listview
protected void initComponent(org.openqa.selenium.WebElement we) throws SeleniumPlusException
initComponent
in class AIComponent
SeleniumPlusException
protected java.lang.String getType()
getType
in class AIComponent
protected void localProcess(java.lang.String action, java.util.List<java.lang.String> parameters) throws SAFSException
AIComponent
localProcess
in class AIComponent
action
- String, the action to performparameters
- ListSAFSException
- if target object cannot be found, or the action is not supported, or any exception has been met.@Then(value="{listview_action} {var_or_string} item in the {var_mapitem_or_string} list") public void select_index_in_the_list(java.lang.String action, java.lang.String index, java.lang.String criteria) throws SAFSException
Cucumber Expression: "{listview_action} {var_or_string} item in the {var_mapitem_or_string} list using {list}"
{listview_action} Matches TypeRegistryConfiguration.REGEX_LISTVIEW_ACTION
{var_or_string} Matches TypeRegistryConfiguration.REGEX_VAR_OR_STRING
, represents a variable name (with an optional leading symbol ^) or a double-quoted-string or a single-quoted-string.
{var_mapitem_or_string} Matches TypeRegistryConfiguration.REGEX_VAR_MAPITEM_OR_STRING
,
represents a variable, or a map item, such as mapID:section.item or a double-quoted-string or a single-quoted-string.
It will be parsed by TypeRegistryConfiguration
{list} Matches TypeRegistryConfiguration.REGEX_LIST
, represents a list of string parameters, the parameters can be delimited by TestRecordData.POSSIBLE_SEPARATOR
.
Example Scenario Step:
action
- String, the actionindex
- int, the 1-based index of the item to selectcriteria
- String, the search-conditions helping to find the ListSAFSException
- if target object cannot be found.AIComponent.process(String, String, int, List)
Copyright © SAS Institute. All Rights Reserved.