public class AIComponentActions extends AIComponent
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
libComponent, MAX_TRY_DEFAULT, maxRetry, TYPE
_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 |
---|
AIComponentActions() |
Modifier and Type | Method and Description |
---|---|
void |
click_component(java.lang.String criteria,
java.lang.String type)
Click the component whose text matches the text provided.
|
void |
verify_component_is_displayed(java.lang.String criteria)
Verify the requested component is displayed anywhere on the page.
|
void |
verify_component_is_displayed(java.lang.String criteria,
java.lang.String type)
Verify the requested component is displayed anywhere on the page.
|
checkForCoord, clearHighlight, doSetText, generateCriteria, generateCriteria, getComponentRectangle, getType, highlight, ignoreCache, initComponent, localProcess, 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
@Then(value="click/tap the {var_mapitem_or_string} {word}") public void click_component(java.lang.String criteria, java.lang.String type) throws SAFSException
Cucumber Expression: "click/tap the {mapitem_or_string} {word}"
{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
{word} Matches words without whitespace, for example banana
They will be parsed by TypeRegistryConfiguration
Examples invocations:
criteria
- String, the search-conditions helping to find the component to click.type
- String, allows the user to specify a 'type' (editbox, button, item, option, etc..) to help locate the exact web-element.SAFSObjectNotFoundException
- if not found and abort on find failure is enabled.SAFSException
AISearchBase.findSelectableItemFromText(String)
,
AIMiscActions.accept_partial_text_matches()
,
AIMiscActions.deny_partial_text_matches()
,
AIMiscActions.abort_testing_on_item_not_found()
,
AIMiscActions.continue_testing_on_item_not_found()
,
AIComponent.process(String, String, int, List, String)
@Then(value="verify {var_mapitem_or_string} is displayed/visible") public void verify_component_is_displayed(java.lang.String criteria) throws SAFSException
Cucumber Expression: "verify {mapitem_or_string} is displayed"
{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
Examples invocations:
criteria
- String, the search-conditions helping to find the component to be verified.SAFSObjectNotFoundException
- if not found and abort on find failure is enabled.SAFSException
AISearchBase.findSelectableItemFromText(String)
,
AIMiscActions.accept_partial_text_matches()
,
AIMiscActions.deny_partial_text_matches()
,
AIMiscActions.abort_testing_on_item_not_found()
,
AIMiscActions.continue_testing_on_item_not_found()
,
AIComponent.process(String, String, int, List)
@Then(value="verify the {var_mapitem_or_string} {word} is displayed/visible") public void verify_component_is_displayed(java.lang.String criteria, java.lang.String type) throws SAFSException
Cucumber Expression: "verify the {mapitem_or_string} {word} is displayed/visible"
{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
{word} Matches words without whitespace, for example banana (but not banana split)
Examples invocations:
criteria
- String, the search-conditions helping to find the component to be verified.type
- String, allows the user to specify a 'type' (editbox, button, item, option, etc..) to help locate the exact web-element.SAFSObjectNotFoundException
- if not found and abort on find failure is enabled.SAFSException
AISearchBase.findSelectableItemFromText(String)
,
AIMiscActions.accept_partial_text_matches()
,
AIMiscActions.deny_partial_text_matches()
,
AIMiscActions.abort_testing_on_item_not_found()
,
AIMiscActions.continue_testing_on_item_not_found()
,
AIComponent.process(String, String, int, List)
Copyright © SAS Institute. All Rights Reserved.