Package net.serenitybdd.core.pages
Class FluentDropdown
java.lang.Object
net.serenitybdd.core.pages.FluentDropdown
- All Implemented Interfaces:
org.openqa.selenium.support.ui.ISelect
- Direct Known Subclasses:
FluentDropdownDeselect
,FluentDropdownSelect
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
byIndex
(int index) void
void
byVisibleText
(String text) void
void
deselectByIndex
(int index) void
deselectByValue
(String value) void
deselectByVisibleText
(String text) List<org.openqa.selenium.WebElement>
org.openqa.selenium.WebElement
List<org.openqa.selenium.WebElement>
boolean
protected org.openqa.selenium.support.ui.Select
select()
void
selectByIndex
(int index) void
selectByValue
(String value) void
selectByVisibleText
(String text)
-
Constructor Details
-
FluentDropdown
-
-
Method Details
-
select
protected org.openqa.selenium.support.ui.Select select() -
isMultiple
public boolean isMultiple()- Specified by:
isMultiple
in interfaceorg.openqa.selenium.support.ui.ISelect
-
getOptions
- Specified by:
getOptions
in interfaceorg.openqa.selenium.support.ui.ISelect
-
getAllSelectedOptions
- Specified by:
getAllSelectedOptions
in interfaceorg.openqa.selenium.support.ui.ISelect
-
getFirstSelectedOption
public org.openqa.selenium.WebElement getFirstSelectedOption()- Specified by:
getFirstSelectedOption
in interfaceorg.openqa.selenium.support.ui.ISelect
-
selectByVisibleText
- Specified by:
selectByVisibleText
in interfaceorg.openqa.selenium.support.ui.ISelect
-
byVisibleText
-
selectByIndex
public void selectByIndex(int index) - Specified by:
selectByIndex
in interfaceorg.openqa.selenium.support.ui.ISelect
-
byIndex
public void byIndex(int index) -
selectByValue
- Specified by:
selectByValue
in interfaceorg.openqa.selenium.support.ui.ISelect
-
byValue
-
deselectAll
public void deselectAll()- Specified by:
deselectAll
in interfaceorg.openqa.selenium.support.ui.ISelect
-
deselectByValue
- Specified by:
deselectByValue
in interfaceorg.openqa.selenium.support.ui.ISelect
-
deselectByIndex
public void deselectByIndex(int index) - Specified by:
deselectByIndex
in interfaceorg.openqa.selenium.support.ui.ISelect
-
deselectByVisibleText
- Specified by:
deselectByVisibleText
in interfaceorg.openqa.selenium.support.ui.ISelect
-