public class SelectElement extends RunOnFailureKeywordsAdapter
| Modifier and Type | Field and Description |
|---|---|
protected Element |
element
Instantiated Element keyword bean
|
protected Logging |
logging
Instantiated Logging keyword bean
|
protected Robot |
robot |
| Constructor and Description |
|---|
SelectElement() |
| Modifier and Type | Method and Description |
|---|---|
protected List<String> |
getLabelsForOptions(List<org.openqa.selenium.WebElement> options) |
List<String> |
getListItems(String locator) |
String |
getSelectedListLabel(String locator) |
List<String> |
getSelectedListLabels(String locator) |
String |
getSelectedListValue(String locator) |
List<String> |
getSelectedListValues(String locator) |
protected org.openqa.selenium.support.ui.Select |
getSelectList(String locator) |
protected List<org.openqa.selenium.WebElement> |
getSelectListOptions(org.openqa.selenium.support.ui.Select select) |
protected List<org.openqa.selenium.WebElement> |
getSelectListOptions(String locator) |
protected List<org.openqa.selenium.WebElement> |
getSelectListOptionsSelected(String locator) |
protected List<String> |
getValuesForOptions(List<org.openqa.selenium.WebElement> options) |
protected boolean |
isMultiselectList(org.openqa.selenium.support.ui.Select select) |
void |
listSelectionShouldBe(String locator,
String... items) |
void |
listShouldHaveNoSelections(String locator) |
void |
pageShouldContainList(String locator,
String... params) |
void |
pageShouldNotContainList(String locator,
String... params) |
void |
selectAllFromList(String locator) |
void |
selectFromList(String locator,
String... items) |
void |
selectFromListByIndex(String locator,
String... indexes) |
void |
selectFromListByLabel(String locator,
String... labels) |
void |
selectFromListByValue(String locator,
String... values) |
void |
unselectFromList(String locator,
String... items) |
void |
unselectFromListByIndex(String locator,
Integer... indexes) |
void |
unselectFromListByLabel(String locator,
String... labels) |
void |
unselectFromListByValue(String locator,
String... values) |
runOnFailureByAspectJprotected Element element
protected Logging logging
protected Robot robot
public void listShouldHaveNoSelections(String locator)
public void selectAllFromList(String locator)
protected List<String> getLabelsForOptions(List<org.openqa.selenium.WebElement> options)
protected org.openqa.selenium.support.ui.Select getSelectList(String locator)
protected List<org.openqa.selenium.WebElement> getSelectListOptions(org.openqa.selenium.support.ui.Select select)
protected List<org.openqa.selenium.WebElement> getSelectListOptions(String locator)
protected List<org.openqa.selenium.WebElement> getSelectListOptionsSelected(String locator)
protected List<String> getValuesForOptions(List<org.openqa.selenium.WebElement> options)
protected boolean isMultiselectList(org.openqa.selenium.support.ui.Select select)
Copyright © 2019. All rights reserved.