com.atlassian.jira.webtest.framework.impl.selenium.page.dashboard
Class DashboardItemImpl

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<Dashboard>>
                  extended by com.atlassian.jira.webtest.framework.impl.selenium.page.dashboard.DashboardItemImpl
All Implemented Interfaces:
AjsDropdown.Item<Dashboard>, Component<AjsDropdown.Section<Dashboard>>, Localizable, PageObject

public class DashboardItemImpl
extends AbstractSeleniumComponent<AjsDropdown.Section<Dashboard>>
implements AjsDropdown.Item<Dashboard>

Selenium implementation of AjsDropdown.Item for dashboard tools menu,

Since:
v4.3

Field Summary
 
Fields inherited from class com.atlassian.jira.webtest.framework.impl.selenium.core.SeleniumContextAware
assertThat, client, context, timeouts
 
Constructor Summary
protected DashboardItemImpl(DashboardToolsMenu.ToolItems item, AjsDropdown.Section<Dashboard> parent, SeleniumContext context)
           
 
Method Summary
protected  Locator detector()
          Main locator of this page object.
 AjsDropdown.Item<Dashboard> down()
          If this position is selected, this action will move selection to the next position and return it.
 AjsDropdown<Dashboard> 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.
 Locator locator()
          Locator unambiguously locating this page object.
 String name()
          Name of the position as visible in the UI.
 AjsDropdown.Item<Dashboard> select()
          Select this position.
 AjsDropdown.Item<Dashboard> 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, toString, 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

DashboardItemImpl

protected DashboardItemImpl(DashboardToolsMenu.ToolItems item,
                            AjsDropdown.Section<Dashboard> parent,
                            SeleniumContext context)
Method Detail

locator

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

Specified by:
locator in interface Localizable
Returns:
locator

detector

protected Locator 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

dropDown

public AjsDropdown<Dashboard> 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<Dashboard>
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<Dashboard>
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<Dashboard>
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<Dashboard>
Returns:
condition checking whether this position is currently not selected

select

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

Specified by:
select in interface AjsDropdown.Item<Dashboard>
Returns:
this position instance

down

public AjsDropdown.Item<Dashboard> 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<Dashboard>
Returns:
next position, which is also going to be selected
See Also:
AjsDropdown.Item.isSelected(), AjsDropdown.Item.select()

up

public AjsDropdown.Item<Dashboard> 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<Dashboard>
Returns:
previous position, which is also going to be selected
See Also:
AjsDropdown.Item.isSelected(), AjsDropdown.Item.select()


Copyright © 2002-2013 Atlassian. All Rights Reserved.