com.atlassian.jira.webtest.framework.impl.selenium.component
Class SeleniumDDItem<P extends PageObject>

java.lang.Object
  extended by com.atlassian.jira.webtest.framework.impl.selenium.core.SeleniumContextAware
      extended by com.atlassian.jira.webtest.framework.impl.selenium.core.AbstractSeleniumPageObject
          extended by com.atlassian.jira.webtest.framework.impl.selenium.core.AbstractLocatorBasedPageObject
              extended by com.atlassian.jira.webtest.framework.impl.selenium.core.component.AbstractSeleniumComponent<AjsDropdown.Section<P>>
                  extended by com.atlassian.jira.webtest.framework.impl.selenium.component.SeleniumDDItem<P>
All Implemented Interfaces:
AjsDropdown.Item<P>, Component<AjsDropdown.Section<P>>, Localizable, PageObject

public class SeleniumDDItem<P extends PageObject>
extends AbstractSeleniumComponent<AjsDropdown.Section<P>>
implements AjsDropdown.Item<P>

Selenium implementation of the AjsDropdown.Item interface.

Since:
v4.3

Field Summary
 
Fields inherited from class com.atlassian.jira.webtest.framework.impl.selenium.core.SeleniumContextAware
assertThat, client, context, timeouts
 
Constructor Summary
SeleniumDDItem(SeleniumContext ctx, SeleniumDDSection<P> parentSection, String name)
           
 
Method Summary
protected  SeleniumLocator detector()
          Main locator of this page object.
 AjsDropdown.Item<P> down()
          If this position is selected, this action will move selection to the next position and return it.
 AjsDropdown<P> dropDown()
          Dropdown that this position belongs to (section may be retrieved via Component.parent()).
 TimedCondition isNotSelected()
          Check if this position is currently NOT selected.
 TimedCondition isSelected()
          Check if this position is currently selected.
 SeleniumLocator locator()
          Locator unambiguously locating this page object.
 String name()
          Name of the position as visible in the UI.
 AjsDropdown.Item<P> select()
          Select this position.
 String toString()
           
 AjsDropdown.Item<P> up()
          If this position is selected, this action will move selection to the previous position and return it.
 
Methods inherited from class com.atlassian.jira.webtest.framework.impl.selenium.core.component.AbstractSeleniumComponent
parent
 
Methods inherited from class com.atlassian.jira.webtest.framework.impl.selenium.core.AbstractLocatorBasedPageObject
isReady
 
Methods inherited from class com.atlassian.jira.webtest.framework.impl.selenium.core.AbstractSeleniumPageObject
body, conditions, css, forClass, id, jQuery, locatorFor, name, queries, waitFor, xpath
 
Methods inherited from class com.atlassian.jira.webtest.framework.impl.selenium.core.SeleniumContextAware
context
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.atlassian.jira.webtest.framework.core.component.Component
parent
 
Methods inherited from interface com.atlassian.jira.webtest.framework.core.PageObject
context, isReady
 

Constructor Detail

SeleniumDDItem

public SeleniumDDItem(SeleniumContext ctx,
                      SeleniumDDSection<P> parentSection,
                      String name)
Method Detail

detector

protected SeleniumLocator detector()
Description copied from class: AbstractLocatorBasedPageObject
Main locator of this page object. Its presence means that this object is ready to be manipulated in the test.

Specified by:
detector in class AbstractLocatorBasedPageObject
Returns:
main locator of this page object

locator

public SeleniumLocator locator()
Description copied from interface: Localizable
Locator unambiguously locating this page object.

Specified by:
locator in interface Localizable
Returns:
locator

dropDown

public AjsDropdown<P> dropDown()
Description copied from interface: AjsDropdown.Item
Dropdown that this position belongs to (section may be retrieved via Component.parent()).

Specified by:
dropDown in interface AjsDropdown.Item<P extends PageObject>
Returns:
dropdown of this position

name

public String name()
Description copied from interface: AjsDropdown.Item
Name of the position as visible in the UI.

Specified by:
name in interface AjsDropdown.Item<P extends PageObject>
Returns:
name of this position

isSelected

public TimedCondition isSelected()
Description copied from interface: AjsDropdown.Item
Check if this position is currently selected.

Specified by:
isSelected in interface AjsDropdown.Item<P extends PageObject>
Returns:
condition checking whether this position is currently selected

isNotSelected

public TimedCondition isNotSelected()
Description copied from interface: AjsDropdown.Item
Check if this position is currently NOT selected. The returned condition will return true as soon as this position element is not select, or false, if the timeout expires and this element is still selected.

Specified by:
isNotSelected in interface AjsDropdown.Item<P extends PageObject>
Returns:
condition checking whether this position is currently not selected

select

public AjsDropdown.Item<P> select()
Description copied from interface: AjsDropdown.Item
Select this position.

Specified by:
select in interface AjsDropdown.Item<P extends PageObject>
Returns:
this position instance

down

public AjsDropdown.Item<P> down()
Description copied from interface: AjsDropdown.Item
If this position is selected, this action will move selection to the next position and return it.

Specified by:
down in interface AjsDropdown.Item<P extends PageObject>
Returns:
next position, which is also going to be selected
See Also:
AjsDropdown.Item.isSelected(), AjsDropdown.Item.select()

up

public AjsDropdown.Item<P> up()
Description copied from interface: AjsDropdown.Item
If this position is selected, this action will move selection to the previous position and return it.

Specified by:
up in interface AjsDropdown.Item<P extends PageObject>
Returns:
previous position, which is also going to be selected
See Also:
AjsDropdown.Item.isSelected(), AjsDropdown.Item.select()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2002-2013 Atlassian. All Rights Reserved.