com.atlassian.confluence.pageobjects.component.form
Class DynamicSelectElement

java.lang.Object
  extended by com.atlassian.pageobjects.elements.WebDriverElement
      extended by com.atlassian.pageobjects.elements.WebDriverSelectElement
          extended by com.atlassian.confluence.pageobjects.component.form.DynamicSelectElement
All Implemented Interfaces:
com.atlassian.pageobjects.elements.PageElement, com.atlassian.pageobjects.elements.PageElementFinder, com.atlassian.pageobjects.elements.SelectElement

public class DynamicSelectElement
extends com.atlassian.pageobjects.elements.WebDriverSelectElement

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).


Field Summary
 
Fields inherited from class com.atlassian.pageobjects.elements.WebDriverElement
defaultTimeout, driver, locatable, pageBinder, timeouts
 
Constructor Summary
DynamicSelectElement(org.openqa.selenium.By locator)
           
DynamicSelectElement(org.openqa.selenium.By locator, com.atlassian.pageobjects.elements.timeout.TimeoutType defaultTimeout)
           
DynamicSelectElement(org.openqa.selenium.By locator, com.atlassian.pageobjects.elements.WebDriverLocatable parent)
           
DynamicSelectElement(org.openqa.selenium.By locator, com.atlassian.pageobjects.elements.WebDriverLocatable parent, com.atlassian.pageobjects.elements.timeout.TimeoutType timeoutType)
           
DynamicSelectElement(com.atlassian.pageobjects.elements.WebDriverLocatable locatable, com.atlassian.pageobjects.elements.timeout.TimeoutType timeoutType)
           
 
Method Summary
 com.atlassian.pageobjects.elements.query.TimedQuery<Boolean> contains(String text, String value)
          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()
          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)
          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, clear, click, find, find, find, find, findAll, findAll, findAll, findAll, getAttribute, getLocation, getSize, getTagName, getText, getValue, hasAttribute, hasClass, isEnabled, isPresent, isSelected, isVisible, javascript, select, timed, timeout, timeoutInSeconds, toggle, toString, type, 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, getLocation, getSize, getTagName, getText, getValue, hasAttribute, hasClass, isEnabled, isPresent, isSelected, isVisible, javascript, select, timed, toggle, type, withTimeout
 
Methods inherited from interface com.atlassian.pageobjects.elements.PageElementFinder
find, find, find, findAll, findAll, findAll
 

Constructor Detail

DynamicSelectElement

public DynamicSelectElement(org.openqa.selenium.By locator)

DynamicSelectElement

public DynamicSelectElement(org.openqa.selenium.By locator,
                            com.atlassian.pageobjects.elements.timeout.TimeoutType defaultTimeout)

DynamicSelectElement

public DynamicSelectElement(com.atlassian.pageobjects.elements.WebDriverLocatable locatable,
                            com.atlassian.pageobjects.elements.timeout.TimeoutType timeoutType)

DynamicSelectElement

public DynamicSelectElement(org.openqa.selenium.By locator,
                            com.atlassian.pageobjects.elements.WebDriverLocatable parent)

DynamicSelectElement

public DynamicSelectElement(org.openqa.selenium.By locator,
                            com.atlassian.pageobjects.elements.WebDriverLocatable parent,
                            com.atlassian.pageobjects.elements.timeout.TimeoutType timeoutType)
Method Detail

contains

public com.atlassian.pageobjects.elements.query.TimedQuery<Boolean> contains(String text,
                                                                             String value)
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 option
value - 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)
Returns a timed query that checks whether the selection option matches the expected text and value.

Parameters:
text - Expected text of the selected option
value - 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()
Returns a timed query for retrieving the number of options in the select field.

Returns:
Size of the select field's options list


Copyright © 2003–2015 Atlassian. All rights reserved.