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. Use DynamicSelectElement instead from maven module com.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).
  • Field Summary

    Fields inherited from class com.atlassian.pageobjects.elements.WebDriverElement

    defaultTimeout, driver, locatable, pageBinder, timeouts, TO_LOCATABLE
  • 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

    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>
    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, 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

    asWebElement, clear, click, find, findAll, getAttribute, getCssClasses, getId, getLocation, getSize, getTagName, getText, getValue, hasAttribute, hasClass, isEnabled, isPresent, isSelected, isVisible, javascript, select, timed, type, withTimeout

    Methods inherited from interface com.atlassian.pageobjects.elements.PageElementFinder

    find, find, find, findAll, findAll, findAll

    Methods inherited from interface com.atlassian.pageobjects.elements.search.PageElementSearch

    search
  • Constructor Details

    • 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 Details

    • 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 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)
      Deprecated.
      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()
      Deprecated.
      Returns a timed query for retrieving the number of options in the select field.
      Returns:
      Size of the select field's options list