public class SeleniumWMultiDropdownWebElement extends SeleniumGroupInputWebElement
WRAPPER_ELEMENT| Constructor and Description |
|---|
SeleniumWMultiDropdownWebElement(org.openqa.selenium.WebElement element,
org.openqa.selenium.WebDriver driver)
Create a SeleniumWMultiSelectPairWebElement.
|
| Modifier and Type | Method and Description |
|---|---|
void |
deselect(String optionText)
Deselect the option with given text.
|
void |
deselectAll()
Deselect "all" options.
|
org.openqa.selenium.WebElement |
getAddButton() |
org.openqa.selenium.WebElement |
getDropdown(int idx) |
org.openqa.selenium.WebElement |
getDropdown(String optionText) |
List<org.openqa.selenium.WebElement> |
getDropdowns()
Gets the dropdowns in the WMultiDropdown.
|
org.openqa.selenium.WebElement |
getFirstDropdown() |
List<org.openqa.selenium.WebElement> |
getOptions() |
org.openqa.selenium.WebElement |
getRemoveButton(org.openqa.selenium.WebElement dropdown) |
List<org.openqa.selenium.WebElement> |
getSelected() |
boolean |
isEnabled() |
boolean |
isSelected(String labelText)
Is an option with given text selected?
|
void |
select(String optionText)
Select an option using its visible text.
|
void |
switchFirstOption(String toText)
Set a new selection in the first dropdown in a WMultiDropdown using visible option text.
|
void |
switchOption(String fromText,
String toText)
Change a selected option from one value to another.
|
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, sendKeys, submit, waitForPageReady, wrapElementpublic SeleniumWMultiDropdownWebElement(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 getFirstDropdown()
public org.openqa.selenium.WebElement getAddButton()
public List<org.openqa.selenium.WebElement> getOptions()
public List<org.openqa.selenium.WebElement> getSelected()
public org.openqa.selenium.WebElement getDropdown(int idx)
idx - the index of the option list to obtainpublic org.openqa.selenium.WebElement getDropdown(String optionText)
optionText - the text of the selected optionpublic org.openqa.selenium.WebElement getRemoveButton(org.openqa.selenium.WebElement dropdown)
dropdown - the WebElement representing the dropdown which will be removed if the remove button is invokedpublic List<org.openqa.selenium.WebElement> getDropdowns()
public boolean isSelected(String labelText)
labelText - the text visible in the option to be testedtrue if an option with that text is in the selected dropdown.public void deselect(String optionText)
optionText - the text of the option to deselectpublic void select(String optionText)
optionText - the text of the option to selectpublic void switchFirstOption(String toText)
toText - the visible text of the option to selectpublic void switchOption(String fromText, String toText)
fromText - the current selected texttoText - the text to selectpublic void deselectAll()
Copyright © 2024. All rights reserved.