public class SeleniumWMultiSelectPairWebElement extends SeleniumGroupInputWebElement
WRAPPER_ELEMENT| Constructor and Description |
|---|
SeleniumWMultiSelectPairWebElement(org.openqa.selenium.WebElement element,
org.openqa.selenium.WebDriver driver)
Create a SeleniumWMultiSelectPairWebElement.
|
| Modifier and Type | Method and Description |
|---|---|
void |
deselect(String labelText)
Deselect the option with given text.
|
void |
deselect(org.openqa.selenium.WebElement option)
Deselect a given option.
|
void |
deselectAll()
Deselect all of the options.
|
org.openqa.selenium.WebElement |
getAvailableList() |
org.openqa.selenium.WebElement |
getDeselectAllButton() |
org.openqa.selenium.WebElement |
getDeselectButton() |
org.openqa.selenium.WebElement |
getOption(String labelText) |
List<org.openqa.selenium.WebElement> |
getOptions() |
org.openqa.selenium.WebElement |
getSelectAllButton() |
org.openqa.selenium.WebElement |
getSelectButton() |
List<org.openqa.selenium.WebElement> |
getSelected() |
org.openqa.selenium.WebElement |
getSelectedList() |
boolean |
isEnabled() |
boolean |
isSelected(String labelText)
Is an option with given label text selected?
|
boolean |
isSelected(org.openqa.selenium.WebElement option)
Is an option selected?
|
void |
select(String labelText)
Select the option with given text.
|
void |
select(org.openqa.selenium.WebElement option)
Select a given option.
|
void |
selectAll()
Select all of the options.
|
isMandatory, isReadOnlyclear, click, clickElementNoWait, clickNoWait, findElement, findElementImmediate, findElements, findElementsImmediate, getActiveId, getAttribute, getCssValue, getDriver, getElement, getLocation, getRect, getScreenshotAs, getSize, getTagName, getText, getUserContextForSession, isDisplayed, isHidden, isSelected, sendKeys, submit, waitForPageReady, wrapElementpublic SeleniumWMultiSelectPairWebElement(org.openqa.selenium.WebElement element,
org.openqa.selenium.WebDriver driver)
element - the backing WebElementdriver - the current Selenium web driverpublic boolean isEnabled()
SeleniumWComponentWebElementisEnabled in interface org.openqa.selenium.WebElementisEnabled in class SeleniumWComponentWebElementpublic org.openqa.selenium.WebElement getAvailableList()
public org.openqa.selenium.WebElement getSelectedList()
public List<org.openqa.selenium.WebElement> getOptions()
public List<org.openqa.selenium.WebElement> getSelected()
public org.openqa.selenium.WebElement getOption(String labelText)
labelText - the visible text of the optionpublic boolean isSelected(String labelText)
labelText - the text visible in the option to be testedtrue if an option with that text is in the selected list.public boolean isSelected(org.openqa.selenium.WebElement option)
option - the option to be testedtrue if an option is in the selected list.public org.openqa.selenium.WebElement getSelectButton()
public org.openqa.selenium.WebElement getSelectAllButton()
public org.openqa.selenium.WebElement getDeselectButton()
public org.openqa.selenium.WebElement getDeselectAllButton()
public void select(org.openqa.selenium.WebElement option)
option - the option to selectpublic void select(String labelText)
labelText - the text of the option to selectpublic void deselect(org.openqa.selenium.WebElement option)
option - the option to deselectpublic void deselect(String labelText)
labelText - the text of the option to deselectpublic void selectAll()
public void deselectAll()
Copyright © 2017. All rights reserved.