com.atlassian.pageobjects.elements
Class WebDriverSelectElement

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

public class WebDriverSelectElement
extends WebDriverElement
implements SelectElement

Implementation of SelectElement


Field Summary
 
Fields inherited from class com.atlassian.pageobjects.elements.WebDriverElement
defaultTimeout, driver, locatable, pageBinder, timeouts
 
Constructor Summary
WebDriverSelectElement(org.openqa.selenium.By locator)
           
WebDriverSelectElement(org.openqa.selenium.By locator, TimeoutType defaultTimeout)
           
WebDriverSelectElement(org.openqa.selenium.By locator, WebDriverLocatable parent)
           
WebDriverSelectElement(org.openqa.selenium.By locator, WebDriverLocatable parent, TimeoutType timeoutType)
           
WebDriverSelectElement(WebDriverLocatable locatable, TimeoutType timeoutType)
           
 
Method Summary
 List<Option> getAllOptions()
          All options
 Option getSelected()
          Selected option of this select.
 SelectElement select(Option option)
          Select given option.
 
Methods inherited from class com.atlassian.pageobjects.elements.WebDriverElement
asWebElement, clear, click, createTimout, find, find, find, find, findAll, findAll, findAll, findAll, getAttribute, getLocation, getSize, getTagName, getText, getValue, hasAttribute, hasClass, isEnabled, isPresent, isSelected, isVisible, javascript, select, timed, timeout, 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

WebDriverSelectElement

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

WebDriverSelectElement

public WebDriverSelectElement(org.openqa.selenium.By locator,
                              TimeoutType defaultTimeout)

WebDriverSelectElement

public WebDriverSelectElement(WebDriverLocatable locatable,
                              TimeoutType timeoutType)

WebDriverSelectElement

public WebDriverSelectElement(org.openqa.selenium.By locator,
                              WebDriverLocatable parent)

WebDriverSelectElement

public WebDriverSelectElement(org.openqa.selenium.By locator,
                              WebDriverLocatable parent,
                              TimeoutType timeoutType)
Method Detail

getAllOptions

public List<Option> getAllOptions()
Description copied from interface: SelectElement
All options

Specified by:
getAllOptions in interface SelectElement
Returns:
all options of this select

getSelected

public Option getSelected()
Description copied from interface: SelectElement
Selected option of this select.

Specified by:
getSelected in interface SelectElement
Returns:
selected option of this select

select

public SelectElement select(Option option)
Description copied from interface: SelectElement
Select given option. Options can be generated by using the (@Link Options) factory

Specified by:
select in interface SelectElement
Parameters:
option - option to select
Returns:
this select instance


Copyright © 2014 Atlassian. All rights reserved.