|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.webtest.framework.impl.selenium.core.SeleniumContextAware com.atlassian.jira.webtest.framework.impl.selenium.core.AbstractSeleniumPageObject com.atlassian.jira.webtest.framework.impl.selenium.core.AbstractLocatorBasedPageObject com.atlassian.jira.webtest.framework.impl.selenium.core.component.AbstractSeleniumComponent<Dashboard> com.atlassian.jira.webtest.framework.impl.selenium.page.dashboard.SeleniumDashboardToolsMenu
public class SeleniumDashboardToolsMenu
Selenium implementation of DashboardToolsMenu
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.atlassian.jira.webtest.framework.page.dashboard.DashboardToolsMenu |
---|
DashboardToolsMenu.CloseMode, DashboardToolsMenu.ToolItems |
Nested classes/interfaces inherited from interface com.atlassian.jira.webtest.framework.component.AjsDropdown |
---|
AjsDropdown.Item<R extends PageObject>, AjsDropdown.Section<Q extends PageObject> |
Field Summary |
---|
Fields inherited from class com.atlassian.jira.webtest.framework.impl.selenium.core.SeleniumContextAware |
---|
assertThat, client, context, timeouts |
Constructor Summary | |
---|---|
SeleniumDashboardToolsMenu(Dashboard parent,
SeleniumContext ctx)
|
Method Summary | |
---|---|
TimedQuery<List<AjsDropdown.Section<Dashboard>>> |
allSections()
Get all sections of this drop-down. |
DashboardToolsMenu.CloseMode |
close()
Extended close mechanism. |
protected SeleniumLocator |
detector()
Main locator of this page object. |
TimedCondition |
hasItem(String itemText)
Check if this drop-down has item with given itemText. |
TimedCondition |
hasSection(String id)
Check if this drop-down has section with given id. |
TimedCondition |
isClosed()
A timed condition that queries, whether this component is currently closed. |
TimedCondition |
isOpen()
Checks if this component is open. |
TimedCondition |
isOpenable()
Represents a question: is this component capable of being opened in the current test context? |
TimedQuery<AjsDropdown.Item<Dashboard>> |
item(String text)
Find first position matching test |
TimedQuery<Integer> |
itemCount()
Number of items in this drop-down |
Locator |
locator()
Locator unambiguously locating this page object. |
AjsDropdown<Dashboard> |
open()
Open this component and return this instance. |
TimedQuery<AjsDropdown.Section<Dashboard>> |
section(String id)
Find section with given id. |
TimedQuery<AjsDropdown.Item<Dashboard>> |
selectedItem()
Get currently selected position of in the list. |
DashboardItemImpl |
toolItem(DashboardToolsMenu.ToolItems item)
Find item of the tools menu. |
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 |
---|
public SeleniumDashboardToolsMenu(Dashboard parent, SeleniumContext ctx)
Method Detail |
---|
protected SeleniumLocator detector()
AbstractLocatorBasedPageObject
detector
in class AbstractLocatorBasedPageObject
public Locator locator()
Localizable
locator
in interface Localizable
public TimedCondition isOpen()
Openable
isOpen
in interface Openable<AjsDropdown<Dashboard>>
TimedCondition
public TimedCondition isClosed()
Openable
isClosed
in interface Openable<AjsDropdown<Dashboard>>
TimedCondition
public TimedCondition isOpenable()
Openable
Represents a question: is this component capable of being opened in the current test context?
If the returned condition evaluates to true
, this component may be safely opened by means of
Openable.open()
.
NOTE: if
Openable.isOpen()
evaluates to true
, this condition will automatically evaluate to
false
, as it is not possible to open a component that is already open.
isOpenable
in interface Openable<AjsDropdown<Dashboard>>
public AjsDropdown<Dashboard> open()
Openable
Open this component and return this instance.
A pre-condition for this action is that the Openable.isClosed()
and Openable.isOpenable()
condition is met.
NOTE: this method, like most action methods in the framework, does not verify its results (as opposed
to pre-conditions), as in some cases it might be legitimate to attempt to open a component given the test context
state deliberately set up to make this attempt fail and then verify that the failure did happen. Thus, invoking
clients are responsible for validation results of this action, which may be done by calling Openable.isOpen()
.
open
in interface Openable<AjsDropdown<Dashboard>>
public DashboardToolsMenu.CloseMode close()
DashboardToolsMenu
close
in interface AjsDropdown<Dashboard>
close
in interface DashboardToolsMenu
AjsDropdown.close()
,
AjsDropdown.CloseMode
public TimedCondition hasItem(String itemText)
AjsDropdown
hasItem
in interface AjsDropdown<Dashboard>
itemText
- text of the position to find
public DashboardItemImpl toolItem(DashboardToolsMenu.ToolItems item)
DashboardToolsMenu
toolItem
in interface DashboardToolsMenu
item
- item representation
public TimedCondition hasSection(String id)
AjsDropdown
hasSection
in interface AjsDropdown<Dashboard>
id
- unique pag ID of the section to find
public TimedQuery<Integer> itemCount()
AjsDropdown
itemCount
in interface AjsDropdown<Dashboard>
public TimedQuery<AjsDropdown.Section<Dashboard>> section(String id)
AjsDropdown
section
in interface AjsDropdown<Dashboard>
id
- unique page ID of the section
null
,
if such section does not exist within this drop-downAjsDropdown.hasItem(String)
public TimedQuery<List<AjsDropdown.Section<Dashboard>>> allSections()
AjsDropdown
allSections
in interface AjsDropdown<Dashboard>
public TimedQuery<AjsDropdown.Item<Dashboard>> item(String text)
AjsDropdown
item
in interface AjsDropdown<Dashboard>
text
- text of the position to find
null
,
if position with given text does not exist in this drop-downAjsDropdown.hasItem(String)
public TimedQuery<AjsDropdown.Item<Dashboard>> selectedItem()
AjsDropdown
selectedItem
in interface AjsDropdown<Dashboard>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |