public class Select2WidgetElement extends WebFragmentImpl
Constructor and Description |
---|
Select2WidgetElement(org.openqa.selenium.WebDriver driver,
org.openqa.selenium.WebElement element)
Constructor.
|
Select2WidgetElement(org.openqa.selenium.WebDriver driver,
org.openqa.selenium.WebElement element,
boolean multiple)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
org.openqa.selenium.WebElement |
getSelectedValue() |
List<org.openqa.selenium.WebElement> |
getSelectedValues() |
void |
removeFromSelection(String displayedText) |
void |
selectValue(String value)
Select a single value.
|
void |
selectValues(String[] values)
Select multiple values.
|
checkTextToBeNotPresent, checkTextToBePresent, clear, click, containsText, findElement, findElements, getAttribute, getCssValue, getElement, getId, getLocation, getSize, getTagName, getText, getWebFragment, getWebFragment, isDisplayed, isEnabled, isSelected, sendKeys, setElement, submit, waitForTextToBePresent
public Select2WidgetElement(org.openqa.selenium.WebDriver driver, org.openqa.selenium.WebElement element)
driver
- the driverby
- the by locator of the widgetpublic Select2WidgetElement(org.openqa.selenium.WebDriver driver, org.openqa.selenium.WebElement element, boolean multiple)
driver
- the driverby
- the by locator of the widgetmultiple
- whether the widget can have multiple valuespublic org.openqa.selenium.WebElement getSelectedValue()
public List<org.openqa.selenium.WebElement> getSelectedValues()
public void removeFromSelection(String displayedText)
public void selectValue(String value)
value
- the value to be selectedpublic void selectValues(String[] values)
values
- the valuesCopyright © 2014 Nuxeo SA. All rights reserved.