public class JavaMenu extends GenericObject
Modifier | Constructor and Description |
---|---|
protected |
JavaMenu(java.lang.String compname) |
|
JavaMenu(java.lang.String winname,
java.lang.String compname)
Constructor
Create an instance of pseudo-component representing
a specific component in a specific window.
|
|
JavaMenu(Window window,
java.lang.String compname)
Constructor
Create an instance of pseudo-component representing
a specific component in a specific window.
|
Modifier and Type | Method and Description |
---|---|
ComponentFunction |
resetMenuCache()
Reset the cache containing the content of whole menu.
|
void |
resetMenuCache(StepTestTable table)
Reset the cache containing the content of whole menu.
|
void |
selectMenuItem(StepTestTable table,
java.lang.String[] parameters)
Action to select a menuItem according to its text value.
|
void |
selectMenuItem(StepTestTable table,
java.lang.String textValue,
java.lang.String indexPath)
Action to select a menuItem according to its text value.
|
ComponentFunction |
selectMenuItem(java.lang.String[] parameters)
Action to select a menuItem according to its text value.
|
ComponentFunction |
selectMenuItem(java.lang.String textValue,
java.lang.String indexPath)
Action to select a menuItem according to its text value.
|
void |
selectMenuItemContains(StepTestTable table,
java.lang.String[] parameters)
Action to select a menuItem according to a partial match of its text value.
|
void |
selectMenuItemContains(StepTestTable table,
java.lang.String textValue,
java.lang.String indexPath)
Action to select a menuItem according to a partial match of its text value.
|
ComponentFunction |
selectMenuItemContains(java.lang.String[] parameters)
Action to select a menuItem according to a partial match of its text value.
|
ComponentFunction |
selectMenuItemContains(java.lang.String textValue,
java.lang.String indexPath)
Action to select a menuItem according to a partial match of its text value.
|
void |
selectUnverifiedMenuItem(StepTestTable table,
java.lang.String[] parameters)
Action to select a menuItem according to its text value without verification of it's existance.
|
void |
selectUnverifiedMenuItem(StepTestTable table,
java.lang.String textValue,
java.lang.String indexPath)
Action to select a menuItem according to its text value without verification of it's existance.
|
ComponentFunction |
selectUnverifiedMenuItem(java.lang.String[] parameters)
Action to select a menuItem according to its text value without verification of it's existance.
|
ComponentFunction |
selectUnverifiedMenuItem(java.lang.String textValue,
java.lang.String indexPath)
Action to select a menuItem according to its text value without verification of it's existance.
|
void |
verifyMenuItem(StepTestTable table,
java.lang.String[] parameters)
Attempts to verify the a particular menuitem exists in a menu.
|
void |
verifyMenuItem(StepTestTable table,
java.lang.String menuItemText,
java.lang.String expectedStatus,
java.lang.String indexPath)
Attempts to verify the a particular menuitem exists in a menu.
|
ComponentFunction |
verifyMenuItem(java.lang.String[] parameters)
Attempts to verify the a particular menuitem exists in a menu.
|
ComponentFunction |
verifyMenuItem(java.lang.String menuItemText,
java.lang.String expectedStatus,
java.lang.String indexPath)
Attempts to verify the a particular menuitem exists in a menu.
|
void |
verifyMenuItemContains(StepTestTable table,
java.lang.String[] parameters)
Attempts to verify the existence of a menuitem found by partial text match.
|
void |
verifyMenuItemContains(StepTestTable table,
java.lang.String menuItemText,
java.lang.String expectedStatus,
java.lang.String indexPath)
Attempts to verify the existence of a menuitem found by partial text match.
|
ComponentFunction |
verifyMenuItemContains(java.lang.String[] parameters)
Attempts to verify the existence of a menuitem found by partial text match.
|
ComponentFunction |
verifyMenuItemContains(java.lang.String menuItemText,
java.lang.String expectedStatus,
java.lang.String indexPath)
Attempts to verify the existence of a menuitem found by partial text match.
|
altClick, altClick, altClick, altClick, altLeftDrag, altLeftDrag, click, click, click, click, clickScreenImage, clickScreenImage, clickScreenLocation, clickScreenLocation, clickScreenPoint, clickScreenPoint, compareStoredData, compareStoredData, compareStoredData, compareStoredData, compareStoredProperties, compareStoredProperties, compareStoredProperties, compareStoredProperties, ctrlAltLeftDrag, ctrlAltLeftDrag, ctrlClick, ctrlClick, ctrlClick, ctrlClick, ctrlClickScreenImage, ctrlClickScreenImage, ctrlLeftDrag, ctrlLeftDrag, ctrlRightClick, ctrlRightClick, ctrlRightClick, ctrlRightClick, ctrlRightClickScreenImage, ctrlRightClickScreenImage, ctrlShiftLeftDrag, ctrlShiftLeftDrag, doubleClick, doubleClick, doubleClick, doubleClick, doubleClickScreenImage, doubleClickScreenImage, doubleClickScreenLocation, doubleClickScreenLocation, doubleClickScreenPoint, doubleClickScreenPoint, doubleTap, doubleTap, dragTo, dragTo, dragTo, dragTo, flick, flick, flick, flick, flickDown, flickDown, flickLeft, flickLeft, flickRight, flickRight, flickUp, flickUp, hScrollTo, hScrollTo, javaMenuSelect, javaMenuSelect, leftDrag, leftDrag, mouseClick, mouseClick, multiClick, multiClick, multiClick, multiClick, multiClickScreenImage, multiClickScreenImage, multiClickScreenImage, multiClickScreenImage, press, press, rightClick, rightClick, rightClick, rightClick, rightClickScreenImage, rightClickScreenImage, rightClickScreenLocation, rightClickScreenLocation, rightClickScreenPoint, rightClickScreenPoint, rightDrag, rightDrag, shiftClick, shiftClick, shiftClick, shiftClick, shiftClickScreenImage, shiftClickScreenImage, shiftLeftDrag, shiftLeftDrag, tap, tap, twoFingerTap, twoFingerTap, verifyImage, verifyImage, vScrollTo, vScrollTo
assignPropertyVariable, assignPropertyVariable, assignPropertyVariable, assignPropertyVariable, captureObjectDataToFile, captureObjectDataToFile, captureObjectDataToFile, captureObjectDataToFile, capturePropertiesToFile, capturePropertiesToFile, capturePropertiesToFile, capturePropertiesToFile, capturePropertyToFile, capturePropertyToFile, capturePropertyToFile, capturePropertyToFile, clearAppMapCache, clearAppMapCache, clearCache, clearCache, executeScript, executeScript, executeScript, executeScript, getComputedStyle, getComputedStyle, getGUIImage, getGUIImage, getGUIImage, getGUIImage, getTextFromGUI, getTextFromGUI, getTextFromGUI, getTextFromGUI, gUIDoesExist, gUIDoesExist, gUIDoesNotExist, gUIDoesNotExist, hoverMouse, hoverMouse, hoverMouse, hoverMouse, hoverScreenLocation, hoverScreenLocation, hoverScreenLocation, hoverScreenLocation, inputCharacters, inputCharacters, inputKeys, inputKeys, isPropertyExist, isPropertyExist, isPropertyExist, isPropertyExist, locateScreenImage, locateScreenImage, locateScreenImage, locateScreenImage, saveTextFromGUI, saveTextFromGUI, saveTextFromGUI, saveTextFromGUI, sendEvent, sendEvent, sendEvent, sendEvent, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, showOnPage, showOnPage, typeChars, typeChars, typeEncryption, typeEncryption, typeEncryption, typeEncryption, typeKeys, typeKeys, verifyArrayPropertyToFile, verifyArrayPropertyToFile, verifyArrayPropertyToFile, verifyArrayPropertyToFile, verifyBinaryFileToFile, verifyBinaryFileToFile, verifyBinaryFileToFile, verifyBinaryFileToFile, verifyClipboardToFile, verifyClipboardToFile, verifyClipboardToFile, verifyClipboardToFile, verifyClipboardVP, verifyClipboardVP, verifyComputedStyle, verifyComputedStyle, verifyFileToFile, verifyFileToFile, verifyFileToFile, verifyFileToFile, verifyGUIImageToFile, verifyGUIImageToFile, verifyGUIImageToFile, verifyGUIImageToFile, verifyObjectDataToFile, verifyObjectDataToFile, verifyObjectDataToFile, verifyObjectDataToFile, verifyPropertiesSubsetToFile, verifyPropertiesSubsetToFile, verifyPropertiesSubsetToFile, verifyPropertiesSubsetToFile, verifyPropertiesToFile, verifyPropertiesToFile, verifyPropertiesToFile, verifyPropertiesToFile, verifyProperty, verifyProperty, verifyProperty, verifyProperty, verifyPropertyContains, verifyPropertyContains, verifyPropertyContains, verifyPropertyContains, verifyPropertyToFile, verifyPropertyToFile, verifyPropertyToFile, verifyPropertyToFile, verifyTabOrder, verifyTabOrder, verifyTextFileToFile, verifyTextFileToFile, verifyTextFileToFile, verifyTextFileToFile, verifyValueContains, verifyValueContains, verifyValueContains, verifyValueContains, verifyValueContainsIgnoreCase, verifyValueContainsIgnoreCase, verifyValueContainsIgnoreCase, verifyValueContainsIgnoreCase, verifyValueDoesNotContain, verifyValueDoesNotContain, verifyValueDoesNotContain, verifyValueDoesNotContain, verifyValues, verifyValues, verifyValues, verifyValues, verifyValuesIgnoreCase, verifyValuesIgnoreCase, verifyValuesIgnoreCase, verifyValuesIgnoreCase, verifyValuesNotEqual, verifyValuesNotEqual, verifyValuesNotEqual, verifyValuesNotEqual
getWindow, setWindow
getName, getParent, getParentName, quote
public JavaMenu(Window window, java.lang.String compname)
window
- Optional:NO
Specifies which Window this component is 'in'.compname
- Optional:NO
Specifies the AppMap name of the component in the Window.public JavaMenu(java.lang.String winname, java.lang.String compname)
winname
- Optional:NO
Specifies the AppMap name of the window.compname
- Optional:NO
Specifies the AppMap name of the component in the Window.protected JavaMenu(java.lang.String compname)
public ComponentFunction resetMenuCache()
Reset the cache containing the content of whole menu. Reset the cache containing the content of whole menu. When we begin to manipulate a new menu, we should call this keyword to reset the cache. This cache is used for verification.Supporting Engines:
public void resetMenuCache(StepTestTable table)
Reset the cache containing the content of whole menu. Reset the cache containing the content of whole menu. When we begin to manipulate a new menu, we should call this keyword to reset the cache. This cache is used for verification.Supporting Engines:
table
- Optional:NO
The table to add the record to.public ComponentFunction selectMenuItem(java.lang.String textValue, java.lang.String indexPath)
Action to select a menuItem according to its text value. In RRAFS, this command will work on both JavaMenu items and JavaPopupMenu items.Supporting Engines:
textValue
- Optional:YES
Case-sensitive text of menuItem to select OR an App Map reference.indexPath
- Optional:YES
The index for item of each level. It is 1-based.public void selectMenuItem(StepTestTable table, java.lang.String textValue, java.lang.String indexPath)
Action to select a menuItem according to its text value. In RRAFS, this command will work on both JavaMenu items and JavaPopupMenu items.Supporting Engines:
table
- Optional:NO
The table to add the record to.textValue
- Optional:YES
Case-sensitive text of menuItem to select OR an App Map reference.indexPath
- Optional:YES
The index for item of each level. It is 1-based.public ComponentFunction selectMenuItem(java.lang.String[] parameters)
Action to select a menuItem according to its text value. In RRAFS, this command will work on both JavaMenu items and JavaPopupMenu items.Supporting Engines:
parameters
- Optional:NO
An array containing the following parameters:
public void selectMenuItem(StepTestTable table, java.lang.String[] parameters)
Action to select a menuItem according to its text value. In RRAFS, this command will work on both JavaMenu items and JavaPopupMenu items.Supporting Engines:
table
- Optional:NO
The table to add the record to.parameters
- Optional:NO
An array containing the following parameters:
public ComponentFunction selectMenuItemContains(java.lang.String textValue, java.lang.String indexPath)
Action to select a menuItem according to a partial match of its text value. In RRAFS, this command will work on both JavaMenu items and JavaPopupMenu items.Supporting Engines:
textValue
- Optional:YES
Case-insensitive substring of menuItem to select OR an App Map reference.indexPath
- Optional:YES
The index for item of each level. It is 1-based.public void selectMenuItemContains(StepTestTable table, java.lang.String textValue, java.lang.String indexPath)
Action to select a menuItem according to a partial match of its text value. In RRAFS, this command will work on both JavaMenu items and JavaPopupMenu items.Supporting Engines:
table
- Optional:NO
The table to add the record to.textValue
- Optional:YES
Case-insensitive substring of menuItem to select OR an App Map reference.indexPath
- Optional:YES
The index for item of each level. It is 1-based.public ComponentFunction selectMenuItemContains(java.lang.String[] parameters)
Action to select a menuItem according to a partial match of its text value. In RRAFS, this command will work on both JavaMenu items and JavaPopupMenu items.Supporting Engines:
parameters
- Optional:NO
An array containing the following parameters:
public void selectMenuItemContains(StepTestTable table, java.lang.String[] parameters)
Action to select a menuItem according to a partial match of its text value. In RRAFS, this command will work on both JavaMenu items and JavaPopupMenu items.Supporting Engines:
table
- Optional:NO
The table to add the record to.parameters
- Optional:NO
An array containing the following parameters:
public ComponentFunction selectUnverifiedMenuItem(java.lang.String textValue, java.lang.String indexPath)
Action to select a menuItem according to its text value without verification of it's existance. Action to select a menuItem according to its text value without verification of it's existance.Supporting Engines:
textValue
- Optional:NO
Case-sensitive text of menuItem to select OR an App Map reference.indexPath
- Optional:YES
The index for item of each level. It is 1-based.public void selectUnverifiedMenuItem(StepTestTable table, java.lang.String textValue, java.lang.String indexPath)
Action to select a menuItem according to its text value without verification of it's existance. Action to select a menuItem according to its text value without verification of it's existance.Supporting Engines:
table
- Optional:NO
The table to add the record to.textValue
- Optional:NO
Case-sensitive text of menuItem to select OR an App Map reference.indexPath
- Optional:YES
The index for item of each level. It is 1-based.public ComponentFunction selectUnverifiedMenuItem(java.lang.String[] parameters)
Action to select a menuItem according to its text value without verification of it's existance. Action to select a menuItem according to its text value without verification of it's existance.Supporting Engines:
parameters
- Optional:NO
An array containing the following parameters:
public void selectUnverifiedMenuItem(StepTestTable table, java.lang.String[] parameters)
Action to select a menuItem according to its text value without verification of it's existance. Action to select a menuItem according to its text value without verification of it's existance.Supporting Engines:
table
- Optional:NO
The table to add the record to.parameters
- Optional:NO
An array containing the following parameters:
public ComponentFunction verifyMenuItem(java.lang.String menuItemText, java.lang.String expectedStatus, java.lang.String indexPath)
Attempts to verify the a particular menuitem exists in a menu. The menuitem should be specified in the form "Menu->Menu->MenuItem CTRL+V" with the full text (ampersands optional), spaces(if any), and keyboard shortcut text (if any). (The ampersands precede any character in the menuitem that is underlined.) This command differs from the WindowFunction.VerifyMenuItem command because here we are actually seeking a JavaMenu component, not a Window that contains a menu. Also, we do not currently verify any state information like the WindowFunctions.VerifyMenuItem command.Supporting Engines:
menuItemText
- Optional:NO
Menu->MenuItem hierarchy string to identify which menuitem to find.expectedStatus
- Optional:YES
Expected status string (or part thereof) of the menuitem.indexPath
- Optional:YES
The index for item of each level. It is 1-based.public void verifyMenuItem(StepTestTable table, java.lang.String menuItemText, java.lang.String expectedStatus, java.lang.String indexPath)
Attempts to verify the a particular menuitem exists in a menu. The menuitem should be specified in the form "Menu->Menu->MenuItem CTRL+V" with the full text (ampersands optional), spaces(if any), and keyboard shortcut text (if any). (The ampersands precede any character in the menuitem that is underlined.) This command differs from the WindowFunction.VerifyMenuItem command because here we are actually seeking a JavaMenu component, not a Window that contains a menu. Also, we do not currently verify any state information like the WindowFunctions.VerifyMenuItem command.Supporting Engines:
table
- Optional:NO
The table to add the record to.menuItemText
- Optional:NO
Menu->MenuItem hierarchy string to identify which menuitem to find.expectedStatus
- Optional:YES
Expected status string (or part thereof) of the menuitem.indexPath
- Optional:YES
The index for item of each level. It is 1-based.public ComponentFunction verifyMenuItem(java.lang.String[] parameters)
Attempts to verify the a particular menuitem exists in a menu. The menuitem should be specified in the form "Menu->Menu->MenuItem CTRL+V" with the full text (ampersands optional), spaces(if any), and keyboard shortcut text (if any). (The ampersands precede any character in the menuitem that is underlined.) This command differs from the WindowFunction.VerifyMenuItem command because here we are actually seeking a JavaMenu component, not a Window that contains a menu. Also, we do not currently verify any state information like the WindowFunctions.VerifyMenuItem command.Supporting Engines:
parameters
- Optional:NO
An array containing the following parameters:
public void verifyMenuItem(StepTestTable table, java.lang.String[] parameters)
Attempts to verify the a particular menuitem exists in a menu. The menuitem should be specified in the form "Menu->Menu->MenuItem CTRL+V" with the full text (ampersands optional), spaces(if any), and keyboard shortcut text (if any). (The ampersands precede any character in the menuitem that is underlined.) This command differs from the WindowFunction.VerifyMenuItem command because here we are actually seeking a JavaMenu component, not a Window that contains a menu. Also, we do not currently verify any state information like the WindowFunctions.VerifyMenuItem command.Supporting Engines:
table
- Optional:NO
The table to add the record to.parameters
- Optional:NO
An array containing the following parameters:
public ComponentFunction verifyMenuItemContains(java.lang.String menuItemText, java.lang.String expectedStatus, java.lang.String indexPath)
Attempts to verify the existence of a menuitem found by partial text match. Attempts to verify the existence of a menuitem found by partial text match. The menuitem should be specified in the form "Menu->Menu->MenuItem". (Optional ampersands precede any character in the menuitem that is underlined.) This command differs from the WindowFunction.VerifyMenuItemContains command because here we are actually seeking a JavaMenu component, not a Window that contains a menu. Also, we do not currently verify any state information like the WindowFunctions.VerifyMenuItemContains command.Supporting Engines:
menuItemText
- Optional:NO
Menu->MenuItem hierarchy string to identify which menuitem to find.expectedStatus
- Optional:YES
Expected status string (or part thereof) of the menuitem.indexPath
- Optional:YES
The index for item of each level. It is 1-based.public void verifyMenuItemContains(StepTestTable table, java.lang.String menuItemText, java.lang.String expectedStatus, java.lang.String indexPath)
Attempts to verify the existence of a menuitem found by partial text match. Attempts to verify the existence of a menuitem found by partial text match. The menuitem should be specified in the form "Menu->Menu->MenuItem". (Optional ampersands precede any character in the menuitem that is underlined.) This command differs from the WindowFunction.VerifyMenuItemContains command because here we are actually seeking a JavaMenu component, not a Window that contains a menu. Also, we do not currently verify any state information like the WindowFunctions.VerifyMenuItemContains command.Supporting Engines:
table
- Optional:NO
The table to add the record to.menuItemText
- Optional:NO
Menu->MenuItem hierarchy string to identify which menuitem to find.expectedStatus
- Optional:YES
Expected status string (or part thereof) of the menuitem.indexPath
- Optional:YES
The index for item of each level. It is 1-based.public ComponentFunction verifyMenuItemContains(java.lang.String[] parameters)
Attempts to verify the existence of a menuitem found by partial text match. Attempts to verify the existence of a menuitem found by partial text match. The menuitem should be specified in the form "Menu->Menu->MenuItem". (Optional ampersands precede any character in the menuitem that is underlined.) This command differs from the WindowFunction.VerifyMenuItemContains command because here we are actually seeking a JavaMenu component, not a Window that contains a menu. Also, we do not currently verify any state information like the WindowFunctions.VerifyMenuItemContains command.Supporting Engines:
parameters
- Optional:NO
An array containing the following parameters:
public void verifyMenuItemContains(StepTestTable table, java.lang.String[] parameters)
Attempts to verify the existence of a menuitem found by partial text match. Attempts to verify the existence of a menuitem found by partial text match. The menuitem should be specified in the form "Menu->Menu->MenuItem". (Optional ampersands precede any character in the menuitem that is underlined.) This command differs from the WindowFunction.VerifyMenuItemContains command because here we are actually seeking a JavaMenu component, not a Window that contains a menu. Also, we do not currently verify any state information like the WindowFunctions.VerifyMenuItemContains command.Supporting Engines:
table
- Optional:NO
The table to add the record to.parameters
- Optional:NO
An array containing the following parameters:
Copyright © SAS Institute. All Rights Reserved.