public class FluentSelect extends FluentWebElement
FluentWebElement.NegatingFluentWebElementInternal.BaseFluentWebDriver.MultipleResult, Internal.BaseFluentWebDriver.SingleResultcurrentElementbooleanInsteadOfNotFoundException, context, delegate, GENERIC_TAG, monitor| Modifier | Constructor and Description |
|---|---|
protected |
FluentSelect(org.openqa.selenium.WebDriver delegate,
org.openqa.selenium.support.ui.Select currentSelect,
org.openqa.selenium.WebElement currentElement,
Context context,
Monitor monitor,
boolean booleanInsteadOfNoSuchElement) |
protected |
FluentSelect(org.openqa.selenium.WebDriver delegate,
org.openqa.selenium.WebElement currentElement,
Context context,
Monitor monitor,
boolean booleanInsteadOfNoSuchElement) |
| Modifier and Type | Method and Description |
|---|---|
FluentSelect |
deselectAll()
Clear all selected entries.
|
FluentSelect |
deselectByIndex(int index)
Deselect the option at the given index.
|
FluentSelect |
deselectByValue(java.lang.String value)
Deselect all options that have a value matching the argument.
|
FluentSelect |
deselectByVisibleText(java.lang.String text)
Deselect all options that display text matching the argument.
|
java.util.List<org.openqa.selenium.WebElement> |
getAllSelectedOptions() |
org.openqa.selenium.WebElement |
getFirstSelectedOption() |
java.util.List<org.openqa.selenium.WebElement> |
getOptions() |
protected org.openqa.selenium.support.ui.Select |
getSelect() |
FluentSelect |
ifInvisibleWaitUpTo(Period period) |
boolean |
isMultiple() |
FluentSelect |
selectByIndex(int index)
Select the option at the given index.
|
FluentSelect |
selectByValue(java.lang.String value)
Select all options that have a value matching the argument.
|
FluentSelect |
selectByVisibleText(java.lang.String text)
Select all options that display text matching the argument.
|
FluentSelect |
within(Period period) |
abbr, abbr, abbrs, abbrs, acronym, acronym, acronyms, acronyms, actualFindElement, actualFindElements, address, address, addresses, addresses, area, area, areas, areas, b, b, blockquote, blockquote, blockquotes, blockquotes, bs, bs, button, button, buttons, buttons, clearField, click, div, div, divs, divs, element, element, element, element, elements, elements, elements, elements, fieldset, fieldset, fieldsets, fieldsets, figure, figure, figures, figures, findElement, findElements, footer, footer, footers, footers, form, form, forms, forms, getAttribute, getCssValue, getLocation, getSearchContext, getSize, getTagName, getText, getText, getWebElement, h1, h1, h1s, h1s, h2, h2, h2s, h2s, h3, h3, h3s, h3s, h4, h4, h4s, h4s, h5, h5, h5s, h5s, h6, h6, h6s, h6s, has, hasMissing, header, header, headers, headers, img, img, imgs, imgs, input, input, inputs, inputs, isDisplayed, isEnabled, isSelected, label, label, labels, labels, legend, legend, legends, legends, li, li, link, link, links, links, lis, lis, map, map, maps, maps, nav, nav, navs, navs, object, object, objects, objects, ol, ol, ols, ols, option, option, options, options, p, p, pre, pre, pres, pres, ps, ps, sendKeys, span, span, spans, spans, submit, table, table, tables, tables, tbody, tbody, tbodys, tbodys, td, td, tds, tds, textarea, textarea, textareas, textareas, th, th, ths, ths, tr, tr, trs, trs, ul, ul, uls, uls, withoutcharSeqArrayAsHumanString, makeFluentWebElementsassertTagIs, beforeFindElement, body, changeTimeout, executeAndWrapReThrowIfNeeded, fixupBy, getPeriod, newFluentWebElement, newFluentWebElements, resetTimeout, retryingFindIt, retryingFindThem, select, select, selects, selects, title, url, wrapAssertionError, wrapRuntimeExceptionprotected FluentSelect(org.openqa.selenium.WebDriver delegate,
org.openqa.selenium.WebElement currentElement,
Context context,
Monitor monitor,
boolean booleanInsteadOfNoSuchElement)
public FluentSelect ifInvisibleWaitUpTo(Period period)
ifInvisibleWaitUpTo in class FluentWebElementpublic boolean isMultiple()
public java.util.List<org.openqa.selenium.WebElement> getOptions()
public java.util.List<org.openqa.selenium.WebElement> getAllSelectedOptions()
public org.openqa.selenium.WebElement getFirstSelectedOption()
public FluentSelect selectByVisibleText(java.lang.String text)
Select all options that display text matching the argument. That is, when given "Bar" this would select an option like:
<option value="foo">Bar</option>text - The visible text to match againstpublic FluentSelect selectByIndex(int index)
index - The option at this index will be selectedpublic FluentSelect selectByValue(java.lang.String value)
Select all options that have a value matching the argument. That is, when given "foo" this would select an option like:
<option value="foo">Bar</option>value - The value to match againstpublic FluentSelect deselectAll()
java.lang.UnsupportedOperationException - If the SELECT does not support multiple selectionspublic FluentSelect deselectByValue(java.lang.String value)
Deselect all options that have a value matching the argument. That is, when given "foo" this would deselect an option like:
<option value="foo">Bar</option>value - The value to match againstpublic FluentSelect deselectByIndex(int index)
index - The option at this index will be deselectedpublic FluentSelect deselectByVisibleText(java.lang.String text)
Deselect all options that display text matching the argument. That is, when given "Bar" this would deselect an option like:
<option value="foo">Bar</option>text - The visible text to match againstprotected org.openqa.selenium.support.ui.Select getSelect()
public FluentSelect within(Period period)
within in class FluentWebElementCopyright © 2017. All Rights Reserved.