public static class SAFSPlus.Menu extends SAFSPlus.Component
Constructor and Description |
---|
Menu() |
Modifier and Type | Method and Description |
---|---|
static boolean |
SelectMenuItem(Component menu,
java.lang.String path)
Select a menuItem according to its text value.
|
static boolean |
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 |
SelectMenuItemContains(Component menu,
java.lang.String path)
Select a menuItem according to a partial match of its text value.
|
static boolean |
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 |
SelectUnverifiedMenuItem(Component menu,
java.lang.String path)
Select a menuItem according to its text value, without verification of menuItem's existance.
|
static boolean |
VerifyMenuItem(Component menu,
java.lang.String path)
Verify the existence of a menuItem according to its text value.
|
static boolean |
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 |
VerifyMenuItemContains(Component menu,
java.lang.String path)
Verify the existence of a menuItem found by partial text match.
|
static boolean |
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.
|
AltClick, AltLeftDrag, AssignPropertyVariable, CaptureObjectDataToFile, CapturePropertiesToFile, CapturePropertyToFile, ClearCache, Click, CtrlAltLeftDrag, CtrlClick, CtrlLeftDrag, CtrlRightClick, CtrlShiftLeftDrag, DoubleClick, DragTo, ExecuteScript, GetComputedStyle, GetGUIImage, GetTextFromGUI, GUIDoesExist, GUIDoesNotExist, HoverMouse, HoverScreenLocation, InputCharacters, InputKeys, IsPropertyExist, IsPropertyExist, LeftDrag, LocateScreenImage, RightClick, RightDrag, SaveTextFromGUI, ShiftClick, ShiftLeftDrag, ShowOnPage, TypeChars, TypeEncryption, TypeKeys, VerifyBinaryFileToFile, VerifyComputedStyle, VerifyFileToFile, VerifyGUIImageToFile, VerifyObjectDataToFile, VerifyPropertiesSubsetToFile, VerifyPropertiesToFile, VerifyProperty, VerifyPropertyContains, VerifyPropertyContains, VerifyPropertyToFile, VerifyTextFileToFile, VerifyValueContains, VerifyValueContainsIgnoreCase, VerifyValueDoesNotContain, VerifyValues, VerifyValuesIgnoreCase, VerifyValuesNotEqual
public static boolean SelectMenuItem(Component menu, java.lang.String path)
menu
- Component (from App Map) to select an item from.path
- String, the path of the item to selectSAFSPlus.prevResults
,
TestRecordData.getStatusCode()
,
TestRecordData.getStatusInfo()
boolean success = Menu.SelectMenuItem(Map.SAPDemo.MenuBar,"Root->child");
public static boolean SelectUnverifiedMenuItem(Component menu, java.lang.String path)
menu
- Component (from App Map) to select an item from.path
- String, the path of the item to selectSAFSPlus.prevResults
,
TestRecordData.getStatusCode()
,
TestRecordData.getStatusInfo()
boolean success = Menu.SelectUnverifiedMenuItem(Map.SAPDemo.MenuBar,"Root->child");
public static boolean SelectMenuItem(Component menu, java.lang.String path, java.lang.String indexPath)
menu
- Component (from App Map) to select an item from.path
- String, the path of the item to select.indexPath
- String, the index path for Nth matched item of each level.SAFSPlus.prevResults
,
TestRecordData.getStatusCode()
,
TestRecordData.getStatusInfo()
//select the 3th item matching "child" under the 2th item matching "Root"
boolean success = Menu.SelectMenuItem(Map.SAPDemo.MenuBar,"Root->child", "2->3");
public static boolean SelectMenuItemContains(Component menu, java.lang.String path)
menu
- Component (from App Map) to select an item from.path
- String, the path of the item to selectSAFSPlus.prevResults
,
TestRecordData.getStatusCode()
,
TestRecordData.getStatusInfo()
boolean success = Menu.SelectMenuItemContains(Map.SAPDemo.MenuBar,"Root->child");
public static boolean SelectMenuItemContains(Component menu, java.lang.String path, java.lang.String indexPath)
menu
- Component (from App Map) to select an item from.path
- String, the path of the item to select.indexPath
- String, the index path for Nth matched item of each level.SAFSPlus.prevResults
,
TestRecordData.getStatusCode()
,
TestRecordData.getStatusInfo()
//select the 3th item matching "child" under the 2th item matching "Root"
boolean success = Menu.SelectMenuItemContains(Map.SAPDemo.MenuBar,"Root->child", "2->3");
public static boolean VerifyMenuItem(Component menu, java.lang.String path)
menu
- Component (from App Map) to verify an item from.path
- String, the path of the item to verifySAFSPlus.prevResults
,
TestRecordData.getStatusCode()
,
TestRecordData.getStatusInfo()
boolean success = Menu.VerifyMenuItem(Map.SAPDemo.MenuBar,"Root->child");
public static boolean VerifyMenuItem(Component menu, java.lang.String path, java.lang.String expectedStatus, java.lang.String indexPath)
menu
- Component (from App Map) to verify an item from.path
- String, the path of the item to verify.expectedStatus
- String, the status of the item to verify.indexPath
- String, the index path for Nth matched item of each level.SAFSPlus.prevResults
,
TestRecordData.getStatusCode()
,
TestRecordData.getStatusInfo()
//verify the first matched "Root->child" is enabled
boolean success = Menu.VerifyMenuItem(Map.SAPDemo.MenuBar,"Root->child", "Enabled", "");
//verify the 3th matched "child" under 2th matched "Root" exists
boolean success = Menu.VerifyMenuItem(Map.SAPDemo.MenuBar,"Root->child", "", "2->3");
//verify the 3th matched "child" under 2th matched "Root" is enabled and it has 4 children.
boolean success = Menu.VerifyMenuItem(Map.SAPDemo.MenuBar,"Root->child", "Enabled Menu With 4 MenuItems", "2->3");
public static boolean VerifyMenuItemContains(Component menu, java.lang.String path)
menu
- Component (from App Map) to verify an item from.path
- String, the path of the item to verifySAFSPlus.prevResults
,
TestRecordData.getStatusCode()
,
TestRecordData.getStatusInfo()
boolean success = Menu.VerifyMenuItemContains(Map.SAPDemo.MenuBar,"Roo->ild");
public static boolean VerifyMenuItemContains(Component menu, java.lang.String path, java.lang.String expectedStatus, java.lang.String indexPath)
menu
- Component (from App Map) to verify an item from.path
- String, the path of the item to verify.expectedStatus
- String, the status of the item to verify.indexPath
- String, the index path for Nth matched item of each level.SAFSPlus.prevResults
,
TestRecordData.getStatusCode()
,
TestRecordData.getStatusInfo()
//verify the first matched "Root->child" is enabled
boolean success = Menu.VerifyMenuItemContains(Map.SAPDemo.MenuBar,"Root->child", "Enabled", "");
//verify the 3th matched "child" under 2th matched "Root" exists
boolean success = Menu.VerifyMenuItemContains(Map.SAPDemo.MenuBar,"Root->child", "", "2->3");
//verify the 3th matched "child" under 2th matched "Root" is enabled and it has 4 children.
boolean success = Menu.VerifyMenuItemContains(Map.SAPDemo.MenuBar,"Root->child", "Enabled Menu With 4 MenuItems", "2->3");
Copyright © SAS Institute. All Rights Reserved.