Class DynamicSelectElement
- java.lang.Object
-
- com.atlassian.pageobjects.elements.WebDriverElement
-
- com.atlassian.pageobjects.elements.WebDriverSelectElement
-
- com.atlassian.confluence.pageobjects.component.form.DynamicSelectElement
-
- All Implemented Interfaces:
com.atlassian.pageobjects.elements.PageElement
,com.atlassian.pageobjects.elements.PageElementFinder
,com.atlassian.pageobjects.elements.search.PageElementSearch
,com.atlassian.pageobjects.elements.SelectElement
@Deprecated public class DynamicSelectElement extends com.atlassian.pageobjects.elements.WebDriverSelectElement
Deprecated.in 5.8. UseDynamicSelectElement
instead from maven modulecom.atlassian.confluence:confluence-webdriver-pageobjects
. See the new README.Represents a select field that can be updated dynamically based on the values set for other form fields, and provides utility methods for checking the values of the select field after it updates (instead of only waiting for the element to be visible).
-
-
Constructor Summary
Constructors Constructor Description DynamicSelectElement(com.atlassian.pageobjects.elements.WebDriverLocatable locatable, com.atlassian.pageobjects.elements.timeout.TimeoutType timeoutType)
Deprecated.DynamicSelectElement(org.openqa.selenium.By locator)
Deprecated.DynamicSelectElement(org.openqa.selenium.By locator, com.atlassian.pageobjects.elements.timeout.TimeoutType defaultTimeout)
Deprecated.DynamicSelectElement(org.openqa.selenium.By locator, com.atlassian.pageobjects.elements.WebDriverLocatable parent)
Deprecated.DynamicSelectElement(org.openqa.selenium.By locator, com.atlassian.pageobjects.elements.WebDriverLocatable parent, com.atlassian.pageobjects.elements.timeout.TimeoutType timeoutType)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description com.atlassian.pageobjects.elements.query.TimedQuery<Boolean>
contains(String text, String value)
Deprecated.Returns a timed query that checks whether an option with the expected text and value is present in this field.com.atlassian.pageobjects.elements.query.TimedQuery<Integer>
getNumOptionsTimed()
Deprecated.Returns a timed query for retrieving the number of options in the select field.com.atlassian.pageobjects.elements.query.TimedQuery<Boolean>
matches(String text, String value)
Deprecated.Returns a timed query that checks whether the selection option matches the expected text and value.-
Methods inherited from class com.atlassian.pageobjects.elements.WebDriverSelectElement
getAllOptions, getSelected, select
-
Methods inherited from class com.atlassian.pageobjects.elements.WebDriverElement
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, isVisible, javascript, search, select, timed, timeout, toggle, toLocatable, toString, type, waitForWebElement, waitForWebElement, withTimeout
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.atlassian.pageobjects.elements.PageElement
clear, click, find, findAll, getAttribute, getCssClasses, getId, getLocation, getSize, getTagName, getText, getValue, hasAttribute, hasClass, isEnabled, isPresent, isSelected, isVisible, javascript, select, timed, toggle, type, withTimeout
-
-
-
-
Constructor Detail
-
DynamicSelectElement
public DynamicSelectElement(org.openqa.selenium.By locator)
Deprecated.
-
DynamicSelectElement
public DynamicSelectElement(org.openqa.selenium.By locator, com.atlassian.pageobjects.elements.timeout.TimeoutType defaultTimeout)
Deprecated.
-
DynamicSelectElement
public DynamicSelectElement(com.atlassian.pageobjects.elements.WebDriverLocatable locatable, com.atlassian.pageobjects.elements.timeout.TimeoutType timeoutType)
Deprecated.
-
DynamicSelectElement
public DynamicSelectElement(org.openqa.selenium.By locator, com.atlassian.pageobjects.elements.WebDriverLocatable parent)
Deprecated.
-
DynamicSelectElement
public DynamicSelectElement(org.openqa.selenium.By locator, com.atlassian.pageobjects.elements.WebDriverLocatable parent, com.atlassian.pageobjects.elements.timeout.TimeoutType timeoutType)
Deprecated.
-
-
Method Detail
-
contains
public com.atlassian.pageobjects.elements.query.TimedQuery<Boolean> contains(String text, String value)
Deprecated.Returns a timed query that checks whether an option with the expected text and value is present in this field.- Parameters:
text
- Expected text of the select optionvalue
- Expected value of the select option- Returns:
- TimedQuery that returns true if the expected option can be found
-
matches
public com.atlassian.pageobjects.elements.query.TimedQuery<Boolean> matches(String text, String value)
Deprecated.Returns a timed query that checks whether the selection option matches the expected text and value.- Parameters:
text
- Expected text of the selected optionvalue
- Expected value of the selected option- Returns:
- TimedQuery that returns true if the expected option matches the selection
-
getNumOptionsTimed
public com.atlassian.pageobjects.elements.query.TimedQuery<Integer> getNumOptionsTimed()
Deprecated.Returns a timed query for retrieving the number of options in the select field.- Returns:
- Size of the select field's options list
-
-