class AutoItComponent.CFComponent extends ComponentFunction
ComponentFunction.Window| Modifier and Type | Field and Description |
|---|---|
protected int |
DEFAULT_TIMEOUT_WAIT_WIN_FOCUSED
'1', the default timeout in seconds to wait the window become focused.
|
protected AutoItRs |
rs
AutoItRs, the object representing the component
|
action, ALTCLICK, ALTLEFTDRAG, altText, ASSIGNPROPERTYVARIABLE, CAPTUREOBJECTDATATOFILE, CAPTUREPROPERTIESTOFILE, CAPTUREPROPERTYTOFILE, CLEARAPPMAPCACHE, CLICK, CLOSEWINDOW, compName, COMPONENTCLICK, CTRLALTLEFTDRAG, CTRLCLICK, CTRLLEFTDRAG, CTRLRIGHTCLICK, CTRLSHIFTLEFTDRAG, DOUBLECLICK, GETGUIIMAGE, GETTEXTFROMGUI, GUIDOESEXIST, GUIDOESNOTEXIST, HOVERMOUSE, HSCROLLTO, INPUTCHARACTERS, INPUTKEYS, ISPROPERTYEXIST, iterator, LEFTDRAG, LOCATESCREENIMAGE, mapname, MAXIMIZE, MINIMIZE, MOUSECLICK, OBJECT_DATA, PARAM_FILTER, PARAM_UUID, PROPERTY_DOT_itemText, PROPERTY_innerHTML, PROPERTY_innerText, PROPERTY_Items, PROPERTY_text, PROPERTY_textContent, RELATIVE_TO_PARENT, RELATIVE_TO_SCREEN, RESTORE, RIGHTCLICK, RIGHTDRAG, SAVETEXTFROMGUI, SELECTMENUITEM, SELECTMENUITEMCONTAINS, SENDEVENT, SETPOSITION, SETPROPERTYVALUE, SHIFTCLICK, SHIFTLEFTDRAG, TEST_DATA_SUFFIX, utils, VERIFYARRAYPROPERTYTOFILE, VERIFYBINARYFILETOFILE, VERIFYCLIPBOARDTOFILE, VERIFYFILETOFILE, VERIFYGUIIMAGETOFILE, VERIFYMENUITEM, VERIFYMENUITEMCONTAINS, VERIFYOBJECTDATATOFILE, VERIFYPROPERTY, VERIFYPROPERTYCONTAINS, VERIFYPROPERTYTOFILE, VERIFYTEXTFILETOFILE, VERIFYVALUECONTAINS, VERIFYVALUEEQUALS, VERIFYVALUES, VERIFYVALUESIGNORECASE, VSCROLLTO, WAITFORGUI, windowNamebreakpointsOn, CASE_INSENSITIVE_FLAG, CASEINSENSITIVE_FLAG, clearProxiesAlways, commandLineBreakpoint, customStr, customText, DEBUG_MESSAGE, debugStr, debugText, DEFAULT_CUSTOM_PROCESSOR_PACKAGE, DEFAULT_CUSTOM_PROCESSOR_SUBPACKAGE, DEFAULT_PROCESSOR_PACKAGE, FAILED_MESSAGE, FAILED_OK_MESSAGE, failedStr, failedText, FAILURE_DETAIL, GENERIC_MESSAGE, genericStr, genericText, LINE_FAILURE_4, log, myBreakpointsOn, otherStr, otherText, PARAM_SIZE_1, PARAM_SIZE_2, PARAM_SIZE_3, PARAM_SIZE_4, params, PASSED_MESSAGE, passedStr, passedText, PRE_TXT_SUCCESS_4, PRE_TXT_SUCCESS_5, processorConfigSet, processorMap, recordProcessed, RECTYPE_DRIVER_COMMAND, RECTYPE_DRIVER_COMMAND_F, RECTYPE_DRIVER_COMMAND_W, RECTYPE_TEST_STEP, RECTYPE_TEST_STEP_F, RECTYPE_TEST_STEP_W, RFSMCache, RFSMOnly, RFT_FIND_SEARCH_MODE_ALGORITHM, RFT_FIND_SEARCH_MODE_CACHE, SAFS_CLEARPROXIESALWAYS_ITEM, SAFS_COMMANDLINEBREAKPOINT_ITEM, SAFS_COMMANDLINEBREAKPOINT_VARIABLE, SAFS_PARAMS_FILE, SAFS_RESBUN_NAME, SAFS_SECSWAITFORCOMPONENT_ITEM, SAFS_SECSWAITFORCOMPONENT_VARIABLE, SAFS_SECSWAITFORWINDOW_ITEM, SAFS_SECSWAITFORWINDOW_VARIABLE, SAFS_TESTDOMAINS_ITEM, SAFS_TESTDOMAINS_VARIABLE, secsWaitForComponent, secsWaitForWindow, SENT_MSG_3, testDomains, testRecordData, testrecordStackable, TXT_FAILURE_1, TXT_FAILURE_2, TXT_FAILURE_3, TXT_FAILURE_4, TXT_FAILURE_5, TXT_SUCCESS_1, TXT_SUCCESS_2, TXT_SUCCESS_2a, TXT_SUCCESS_3, TXT_SUCCESS_3a, TXT_SUCCESS_4, TXT_SUCCESS_5, unexpectedAlertBehaviour, WARNING_MESSAGE, WARNING_OK_MESSAGE, warningStr, warningText| Constructor and Description |
|---|
CFComponent() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
_close()
Override the execution method '_close()' of
keyword 'WindowFunctions.CLOSEWINDOW_KEYWORD'
|
protected void |
_maximize()
Purpose: maximize |
protected void |
_minimize()
Purpose: minimize |
protected void |
_restore()
Purpose: restore |
protected void |
_setPosition(java.awt.Point position)
Subclass should give its own implementation
|
protected void |
_setSize(java.awt.Dimension size)
Subclass should give its own implementation
|
protected boolean |
activate(AutoItRs rs)
Try to set focus to the window and component.
|
protected void |
click(AutoItRs ars)
Deprecated.
|
protected void |
click(AutoItRs autoArgs,
java.awt.Point offset)
Click with position offset.
|
protected void |
click(AutoItRs autoArgs,
java.lang.String mouseButton,
int nClicks,
java.awt.Point offset,
java.lang.String specialKey)
Workhorse of AutoIt click routine.
|
protected void |
componentClick()
Override componentClick() to deal with groups of CLICK keywords.
|
protected void |
ctrlClick(AutoItRs autoArgs,
java.awt.Point offset)
Ctrl click with position offset.
|
protected void |
doubleClick(AutoItRs autoArgs,
java.awt.Point offset)
Double click with position offset.
|
protected java.awt.Rectangle |
getComponentRectangle()
Do nothing method returns null.
|
protected java.awt.Rectangle |
getComponentRectangleOnScreen()
Get the absolute 'Rectangle bounds' of the Component, which means the rectangle is relative to the
whole screen, NOT to a window/browser. |
protected boolean |
performHoverMouse(java.awt.Point offset,
int milliSeconds)
Override the execution method 'performHoverMouse()' of
keyword 'ComponentFunction.HOVERMOUSE'
|
void |
process()
Process the record present in the provided testRecordData.
|
protected void |
rightClick(AutoItRs autoArgs,
java.awt.Point offset)
Right click with position offset.
|
protected void |
setFocus(AutoItRs ars)
setfoucs
|
protected void |
setText(AutoItRs ars)
Send keyboard input to the current input focus target.
|
protected void |
shiftClick(AutoItRs autoArgs,
java.awt.Point offset)
Shift click with position offset.
|
action_ComputedStyle, action_getGuiImage, action_GetSaveTextFromGUI, action_showOnPage, action_verifyGuiImageToFile, assignPropertyVariable, captureObjectData, captureObjectDataToFile, capturePropertiesToFile, capturePropertyToFile, checkForCoord, checkForCoord, clearAppMapCache, clearCache, close, closeWindow, componentExecutedFailureMessage, componentFailureMessage, componentProcess, componentSuccessMessage, convertCoords, convertLine, convertNum, convertWindowPosition, ConvertWindowPosition, deduceImageRect, dragTo, executeScript, exist, getAlternateParams, getHelpers, getHelpersWorker, getPossibleMapItem, getProperties, getProperty, getPropertyCollection, getPropertyCollection, getPropertyObject, getRectangleImage, getStringValue, getUUIDBoolean, getWindowRectangleOnScreen, guiDoesExist, hoverMouse, hoverScreenLocation, inputKeystrokes, isPropertyExist, issueFileErrorFailure, issueParameterCountFailure, issueParameterCountFailure, issueParameterValueFailure, issuePassedSuccess, issuePassedSuccessUsing, issueUnknownErrorFailure, isSupportedRecordType, locateScreenImage, lookupAppMapCoordReference, lookupAppMapLineReference, lookupAppMapNumReference, lookupAppMapReference, maximize, minimize, normalizeFileEncoding, normalizePropertyCollection, performDrag, performScorll, restore, selectMenuItem, sendEvent, setIterator, setPosition, setPropertyValue, setRectVars, showComponentAsMuchPossible, updateFromTestRecordData, verifyClipboardToFile, verifyFileToFile, verifyMenuItem, verifyObjectDataToFile, verifyPropertiesToFile, verifyProperty, verifyPropertyContains, verifyPropertyToFile, verifyValueContains, verifyValues, waitForGUI, waitForObjectactivateBreakpoint, checkBreakpoints, checkMyBreakpoints, deduceBenchFile, deduceDiffFile, deduceProjectFile, deduceTestFile, delay, distributeConfigInformation, getAbsolutFileName, getAppMapItem, getChainedProcessor, getClassInstance, getClearProxiesAlways, getCustomProcClassNames, getCustomProcInstancePath, getLogUtilities, getParams, getProcClassNames, getProcInstance, getProcInstancePath, getRequiredField, getSecsWaitForComponent, getSecsWaitForWindow, getStandardErrorMessage, getTestRecordData, getUnexpectedAlertBehaviour, getVariable, hasChainedProcessor, initProcessorAndProcess, instanceProcessorAndProcess, isBreakpointsOn, isComponentFunctionRecord, isDriverCommandRecord, isEngineCommandRecord, isMyBreakpointsOn, isRecordProcessed, isRFSMCache, isRFSMOnly, issueActionFailure, issueActionOnXFailure, issueErrorPerformingAction, issueErrorPerformingActionOnX, issueErrorPerformingActionUsing, issueInputRecordFailure, issueInputRecordFailure, issuePassedSuccess, logFailureMessage, normalizeTestFileName, paramsFailedMsg, paramsFailedMsg, popTestRecord, processCustomProcessor, processSubclassProcessor, pushTestRecord, setAtEndOfProcess, setBreakpointsOn, setChainedProcessor, setClearProxiesAlways, setCommandLineBreakpoint, setCustomProcInstancePath, setLogUtilities, setMyBreakpointsOn, setParams, setProcInstance, setProcInstancePath, setRecordProcessed, setRFSMCache, setRFSMOnly, setSecsWaitForComponent, setSecsWaitForWindow, setTestDomains, setTestRecordData, setUnexpectedAlertBehaviour, setVariable, standardFailureMessage, substituteVariable, validateParamSize, validProcessorClassNameprotected int DEFAULT_TIMEOUT_WAIT_WIN_FOCUSED
protected AutoItRs rs
public void process()
protected boolean activate(AutoItRs rs)
rs - AutoItRs, the object representing the componentprotected void setFocus(AutoItRs ars)
protected void componentClick()
throws SAFSException
componentClick in class ComponentFunctionSAFSExceptionprotected void click(AutoItRs autoArgs, java.awt.Point offset)
autoArgs - AutoItRs, AutoIt engine's recognition string.offset - Point, the offset position to click within the target component. Also can be null.protected void doubleClick(AutoItRs autoArgs, java.awt.Point offset)
autoArgs - AutoItRs, AutoIt engine's recognition string.offset - Point, the offset position to click within the target component. Also can be null.protected void rightClick(AutoItRs autoArgs, java.awt.Point offset)
autoArgs - AutoItRs, AutoIt engine's recognition string.offset - Point, the offset position to click within the target component. Also can be null.protected void ctrlClick(AutoItRs autoArgs, java.awt.Point offset)
autoArgs - AutoItRs, AutoIt engine's recognition string.offset - Point, the offset position to click within the target component. Also can be null.protected void shiftClick(AutoItRs autoArgs, java.awt.Point offset)
autoArgs - AutoItRs, AutoIt engine's recognition string.offset - Point, the offset position to click within the target component. Also can be null.protected void click(AutoItRs autoArgs, java.lang.String mouseButton, int nClicks, java.awt.Point offset, java.lang.String specialKey)
autoArgs - AutoItRs, AutoIt engine's recognition string.mouseButton - String, the button to click, "left", "right", or "middle". Default is the left button, which means if mouseButton is null or empty,
it'll use the "left" as its value.nClicks - int, number of times to click the mouse.offset - Point, the offset position to click within the target component. Also can be null.specialKey - String, keyboard key that be hold when click action happening.@Deprecated protected void click(AutoItRs ars)
protected void setText(AutoItRs ars)
protected void _restore()
throws SAFSException
_restore in class ComponentFunctionSAFSExceptionprotected void _setPosition(java.awt.Point position)
throws SAFSException
ComponentFunction_setPosition in class ComponentFunctionSAFSExceptionprotected void _setSize(java.awt.Dimension size)
throws SAFSException
ComponentFunction_setSize in class ComponentFunctionSAFSExceptionprotected void _minimize()
throws SAFSException
_minimize in class ComponentFunctionSAFSExceptionprotected void _maximize()
throws SAFSException
_maximize in class ComponentFunctionSAFSExceptionprotected void _close()
throws SAFSException
_close in class ComponentFunctionSAFSExceptionprotected java.awt.Rectangle getComponentRectangle()
ComponentFunctionComponentFunction.getRectangleImage(Rectangle) SHOULD be overridden in subclass to provide appropriate implementation.
ComponentFunction.deduceImageRect(String) to get a subarea rectangle.
getComponentRectangle in class ComponentFunctionComponentFunction.deduceImageRect(String)protected java.awt.Rectangle getComponentRectangleOnScreen()
ComponentFunctiongetComponentRectangleOnScreen in class ComponentFunctionprotected boolean performHoverMouse(java.awt.Point offset,
int milliSeconds)
throws SAFSException
performHoverMouse in class ComponentFunctionoffset - Point, coordinate relative to the component to hover at. null if hover the center.milliSeconds - int, time to hover, in millisecondsSAFSExceptionCopyright © SAS Institute. All Rights Reserved.