Type | Name and description |
---|---|
static java.util.List<java.lang.String> |
getAllOptionsLabel(com.kms.katalon.core.testobject.TestObject to) Get labels of all options. |
static java.util.List<java.lang.String> |
getSelectedOptionsLabel(com.kms.katalon.core.testobject.TestObject to) Get labels of selected options. |
static java.util.List<org.openqa.selenium.WebElement> |
getSelectedOptionsList(com.kms.katalon.core.testobject.TestObject to) Get elements of selected options. |
static void |
removeOption(com.kms.katalon.core.testobject.TestObject to, java.lang.String option) Remove one selected option. |
static void |
removeOptions(com.kms.katalon.core.testobject.TestObject to, java.util.List<java.lang.String> options) Remove selected options. |
static void |
selectManyOptionsByLabel(com.kms.katalon.core.testobject.TestObject to, java.util.List<java.lang.String> options) Select many options by labels. |
static void |
selectOptionByLabel(com.kms.katalon.core.testobject.TestObject to, java.lang.String option) Select an option by label. |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(), java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Get labels of all options.
to
- The select2 box object that tagged as "select" in the document.Get labels of selected options.
to
- The select2 box object that tagged as "select" in the document.Get elements of selected options.
to
- The select2 box object that tagged as "select" in the document.Remove one selected option. This method just applies for multiple value select boxes.
to
- The select2 box object that tagged as "select" in the document.option
- The option needs to remove.Remove selected options. This method just applies for multiple value select boxes.
to
- The select2 box object that tagged as "select" in the document.options
- The list of options needs to remove.Select many options by labels. This method just applies for multiple value select boxes.
to
- The select2 box object that tagged as "select" in the document.options
- The labels of the options need to select.Select an option by label.
to
- The select2 box object that tagged as "select" in the document.option
- The label of the option needs to select.