public class Select2Element
extends com.atlassian.pageobjects.elements.WebDriverElement
Modifier and Type | Field and Description |
---|---|
protected com.atlassian.pageobjects.elements.PageElementFinder |
elementFinder |
Constructor and Description |
---|
Select2Element(org.openqa.selenium.By locator) |
Select2Element(org.openqa.selenium.By locator,
com.atlassian.pageobjects.elements.timeout.TimeoutType timeoutType) |
Select2Element(org.openqa.selenium.By locator,
com.atlassian.pageobjects.elements.WebDriverLocatable parent) |
Select2Element(org.openqa.selenium.By locator,
com.atlassian.pageobjects.elements.WebDriverLocatable parent,
com.atlassian.pageobjects.elements.timeout.TimeoutType timeoutType) |
Modifier and Type | Method and Description |
---|---|
Select2Element |
clickDropDown() |
int |
countChoices() |
Select2Element |
enterValue(String choiceToSelect)
Selects the given choice.
|
Select2Element |
enterValue(String search,
Predicate<String> choicePredicate)
Enter search term and select a choice that matches the predicate.
|
Select2Element |
enterValue(String search,
Predicate<String> choicePredicate,
String expectedSelection)
Enter search term and select a choice that matches the predicate.
|
Select2Element |
enterValue(String search,
String choiceToSelect)
Enter search term and select the given choice.
|
com.atlassian.pageobjects.elements.PageElement |
getContainer() |
com.atlassian.pageobjects.elements.PageElement |
getDropDown() |
com.atlassian.pageobjects.elements.PageElement |
getDropdownTrigger() |
com.atlassian.pageobjects.elements.PageElement |
getInput() |
String |
getSelectedValue()
Get currently selected value from a single-select element.
|
List<String> |
getSelectedValues()
Get all selected values from a multi-select element.
|
List<String> |
getValues() |
<T> List<T> |
getValues(Function<com.atlassian.pageobjects.elements.PageElement,T> f) |
com.atlassian.pageobjects.elements.query.TimedCondition |
isDisabled() |
com.atlassian.pageobjects.elements.query.TimedCondition |
isDropDownOpen() |
boolean |
isMultiSelect() |
boolean |
isValueSelected(String value) |
boolean |
isVisible() |
Select2Element |
openDropDown() |
Select2Element |
type(String value) |
asWebElement, bind, clear, click, createTimout, find, find, find, find, findAll, findAll, findAll, findAll, getAttribute, getCssClasses, getDefaultTimeout, getId, getLocation, getSize, getTagName, getText, getValue, hasAttribute, hasClass, isEnabled, isPresent, isSelected, javascript, search, select, timed, timeout, toggle, toLocatable, toString, type, waitForWebElement, waitForWebElement, withTimeout
@Inject protected com.atlassian.pageobjects.elements.PageElementFinder elementFinder
@Inject public Select2Element(org.openqa.selenium.By locator)
@Inject public Select2Element(org.openqa.selenium.By locator, com.atlassian.pageobjects.elements.WebDriverLocatable parent)
@Inject public Select2Element(org.openqa.selenium.By locator, com.atlassian.pageobjects.elements.timeout.TimeoutType timeoutType)
@Inject public Select2Element(org.openqa.selenium.By locator, com.atlassian.pageobjects.elements.WebDriverLocatable parent, com.atlassian.pageobjects.elements.timeout.TimeoutType timeoutType)
public boolean isVisible()
isVisible
in interface com.atlassian.pageobjects.elements.PageElement
isVisible
in class com.atlassian.pageobjects.elements.WebDriverElement
public com.atlassian.pageobjects.elements.PageElement getContainer()
public com.atlassian.pageobjects.elements.PageElement getDropdownTrigger()
public com.atlassian.pageobjects.elements.PageElement getDropDown()
public boolean isMultiSelect()
public com.atlassian.pageobjects.elements.PageElement getInput()
public Select2Element enterValue(String choiceToSelect)
choiceToSelect
- determines which option to choosepublic Select2Element enterValue(String search, String choiceToSelect)
search
- search termchoiceToSelect
- determines which option to choosepublic Select2Element enterValue(String search, Predicate<String> choicePredicate)
search
- search termchoicePredicate
- determines which option to choosepublic Select2Element enterValue(String search, Predicate<String> choicePredicate, String expectedSelection)
search
- search termchoicePredicate
- determines which option to chooseexpectedSelection
- what result is expected to be selected in the endpublic Select2Element clickDropDown()
public Select2Element openDropDown()
public int countChoices()
public Select2Element type(String value)
@NotNull public <T> List<T> getValues(Function<com.atlassian.pageobjects.elements.PageElement,T> f)
public com.atlassian.pageobjects.elements.query.TimedCondition isDisabled()
@Nullable public String getSelectedValue()
@NotNull public List<String> getSelectedValues()
public boolean isValueSelected(@NotNull String value)
public com.atlassian.pageobjects.elements.query.TimedCondition isDropDownOpen()
Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.