public static class SAFSPlus.ComboBox extends SAFSPlus.Component
Constructor and Description |
---|
ComboBox() |
Modifier and Type | Method and Description |
---|---|
static boolean |
CaptureItemsToFile(Component combobox,
java.lang.String filename,
java.lang.String... params)
Capture all items in Combo Box to a file.
|
static boolean |
HideList(Component combobox)
Hide the combo box list.
|
static boolean |
Select(Component combobox,
java.lang.String itemtext,
java.lang.String... extraParams)
Select an item in Combo Box.
|
static boolean |
SelectIndex(Component combobox,
int index,
java.lang.String... extraParams)
Select an item in Combo Box by index.
|
static boolean |
SelectPartialMatch(Component combobox,
java.lang.String itemtext,
java.lang.String... extraParams)
Select a text item in Combo Box using a partial substring match.
|
static boolean |
SelectUnverified(Component combobox,
java.lang.String itemtext,
java.lang.String... extraParams)
Select an item in Combo Box without verification of the selected item.
|
static boolean |
SelectUnverifiedPartialMatch(Component combobox,
java.lang.String itemtext,
java.lang.String... extraParams)
Select an item in Combo Box using a partial substring match, no verification of the 'selected item' will be attempted.
|
static boolean |
SetTextValue(Component combobox,
java.lang.String value)
Set text value in Combo box.
|
static boolean |
ShowList(Component combobox)
Show the combo box list.
|
static boolean |
VerifySelected(Component combobox,
java.lang.String item)
Verify specific item in Combo Box is selected.
|
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 Select(Component combobox, java.lang.String itemtext, java.lang.String... extraParams)
combobox
- Component (from App Map) to Select item from.itemtext
- -- The combo box option to select.extraParams
- optional
SAFSPlus.prevResults
,
TestRecordData.getStatusCode()
,
TestRecordData.getStatusInfo()
boolean success = ComboBox.Select(Map.Google.Combobox1, "ItemText");
boolean success = ComboBox.Select(Map.Google.Combobox1, "ItemText", "true"); // force refreshing when dealing dynamic 'id' ComboBox
public static boolean SelectUnverified(Component combobox, java.lang.String itemtext, java.lang.String... extraParams)
combobox
- Component (from App Map) to Select item from.itemtext
- -- The combo box option to select.extraParams
- optional
SAFSPlus.prevResults
,
TestRecordData.getStatusCode()
,
TestRecordData.getStatusInfo()
boolean success = ComboBox.SelectUnverified(Map.Google.Combobox1, "ItemText");
boolean success = ComboBox.SelectUnverified(Map.Google.Combobox1, "ItemText", "true"); // force refreshing when dealing dynamic 'id' ComboBox
public static boolean SelectPartialMatch(Component combobox, java.lang.String itemtext, java.lang.String... extraParams)
combobox
- Component (from App Map) to Select item from.itemtext
- -- The combo box option to select, given as a substring of the option. Case Sensitive.extraParams
- optional
SAFSPlus.prevResults
,
TestRecordData.getStatusCode()
,
TestRecordData.getStatusInfo()
boolean success = ComboBox.SelectPartialMatch(Map.Google.Combobox1, "substring");
boolean success = ComboBox.SelectPartialMatch(Map.Google.Combobox1, "substring", "true"); // force refreshing when dealing dynamic 'id' ComboBox
public static boolean SelectUnverifiedPartialMatch(Component combobox, java.lang.String itemtext, java.lang.String... extraParams)
combobox
- Component (from App Map) to Select item from.itemtext
- -- The combo box option to select, given as a substring of the option. Case Sensitive.extraParams
- optional
SAFSPlus.prevResults
,
TestRecordData.getStatusCode()
,
TestRecordData.getStatusInfo()
boolean success = ComboBox.SelectUnverifiedPartialMatch(Map.Google.Combobox1, "PartialItemText");
boolean success = ComboBox.SelectUnverifiedPartialMatch(Map.Google.Combobox1, "PartialItemText", "true"); // force refreshing when dealing dynamic 'id' ComboBox
public static boolean SelectIndex(Component combobox, int index, java.lang.String... extraParams)
combobox
- Component (from App Map) to Select item from.index
- -- the 1-based item index to select.extraParams
- optional
SAFSPlus.prevResults
,
TestRecordData.getStatusCode()
,
TestRecordData.getStatusInfo()
boolean success = ComboBox.SelectIndex(Map.Google.Combobox1, 3);
boolean success = ComboBox.SelectIndex(Map.Google.Combobox1, 3, "true"); // force refreshing when dealing dynamic 'id' ComboBox
public static boolean VerifySelected(Component combobox, java.lang.String item)
combobox
- Component (from App Map) to verify.item
- -- text item expected to be selected.SAFSPlus.prevResults
,
TestRecordData.getStatusCode()
,
TestRecordData.getStatusInfo()
boolean success = ComboBox.VerifySelected(Map.Google.Combobox1,"SelectItem");
public static boolean HideList(Component combobox)
combobox
- Component (from App Map).SAFSPlus.prevResults
,
TestRecordData.getStatusCode()
,
TestRecordData.getStatusInfo()
boolean success = ComboBox.HideList(Map.Google.Combobox1);
public static boolean ShowList(Component combobox)
combobox
- Component (from App Map).SAFSPlus.prevResults
,
TestRecordData.getStatusCode()
,
TestRecordData.getStatusInfo()
boolean success = ComboBox.ShowList(Map.Google.Combobox1);
public static boolean CaptureItemsToFile(Component combobox, java.lang.String filename, java.lang.String... params)
combobox
- (from App Map) to get the content.filename
- String, The filename to save the combo box's dataparams
- optional
SAFSPlus.prevResults
,
TestRecordData.getStatusCode()
,
TestRecordData.getStatusInfo()
boolean success = ComboBox.CaptureItemsToFile(Map.Google.Combobox1,"filename"); boolean success = ComboBox.CaptureItemsToFile(Map.Google.Combobox1,"c:\\filename.txt","UTF-8");
File will be created into Actuals project dir or user define location.
public static boolean SetTextValue(Component combobox, java.lang.String value)
combobox
- org.safs.model.Component, the Combo box Component get from App map file.value
- String, the value of content, which is entered into Combo box.SAFSPlus.prevResults
,
TestRecordData.getStatusCode()
,
TestRecordData.getStatusInfo()
boolean success = ComboBox.SetTextValue(Map.Google.Combobox1,"Some Text");
boolean success = ComboBox.SetTextValue(Map.Google.Combobox1,"Some Text with special keys +(abcd)");
Copyright © SAS Institute. All Rights Reserved.