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
public class FluentDropdown
extends java.lang.Object
implements org.openqa.selenium.support.ui.ISelect
-
Constructor Summary
Constructors Constructor Description FluentDropdown(WebElementFacade webElementFacade) -
Method Summary
Modifier and Type Method Description voidbyIndex(int index)voidbyValue(java.lang.String value)voidbyVisibleText(java.lang.String text)voiddeselectAll()voiddeselectByIndex(int index)voiddeselectByValue(java.lang.String value)voiddeselectByVisibleText(java.lang.String text)java.util.List<org.openqa.selenium.WebElement>getAllSelectedOptions()org.openqa.selenium.WebElementgetFirstSelectedOption()java.util.List<org.openqa.selenium.WebElement>getOptions()booleanisMultiple()protected org.openqa.selenium.support.ui.Selectselect()voidselectByIndex(int index)voidselectByValue(java.lang.String value)voidselectByVisibleText(java.lang.String text)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
FluentDropdown
-
-
Method Details
-
select
protected org.openqa.selenium.support.ui.Select select() -
isMultiple
public boolean isMultiple()- Specified by:
isMultiplein interfaceorg.openqa.selenium.support.ui.ISelect
-
getOptions
public java.util.List<org.openqa.selenium.WebElement> getOptions()- Specified by:
getOptionsin interfaceorg.openqa.selenium.support.ui.ISelect
-
getAllSelectedOptions
public java.util.List<org.openqa.selenium.WebElement> getAllSelectedOptions()- Specified by:
getAllSelectedOptionsin interfaceorg.openqa.selenium.support.ui.ISelect
-
getFirstSelectedOption
public org.openqa.selenium.WebElement getFirstSelectedOption()- Specified by:
getFirstSelectedOptionin interfaceorg.openqa.selenium.support.ui.ISelect
-
selectByVisibleText
public void selectByVisibleText(java.lang.String text)- Specified by:
selectByVisibleTextin interfaceorg.openqa.selenium.support.ui.ISelect
-
byVisibleText
public void byVisibleText(java.lang.String text) -
selectByIndex
public void selectByIndex(int index)- Specified by:
selectByIndexin interfaceorg.openqa.selenium.support.ui.ISelect
-
byIndex
public void byIndex(int index) -
selectByValue
public void selectByValue(java.lang.String value)- Specified by:
selectByValuein interfaceorg.openqa.selenium.support.ui.ISelect
-
byValue
public void byValue(java.lang.String value) -
deselectAll
public void deselectAll()- Specified by:
deselectAllin interfaceorg.openqa.selenium.support.ui.ISelect
-
deselectByValue
public void deselectByValue(java.lang.String value)- Specified by:
deselectByValuein interfaceorg.openqa.selenium.support.ui.ISelect
-
deselectByIndex
public void deselectByIndex(int index)- Specified by:
deselectByIndexin interfaceorg.openqa.selenium.support.ui.ISelect
-
deselectByVisibleText
public void deselectByVisibleText(java.lang.String text)- Specified by:
deselectByVisibleTextin interfaceorg.openqa.selenium.support.ui.ISelect
-