|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.team.fvt.tests.web.WebPageElement
com.ibm.team.fvt.tests.web.WebElementWrapper
com.ibm.team.fvt.tests.web.WebWindow
com.ibm.team.fvt.tests.web.WebMenu
com.ibm.team.fvt.tests.clm.pages.menus.ClmMenu
com.ibm.team.fvt.tests.clm.pages.menus.ClmToolbarMenu
com.ibm.team.fvt.tests.clm.pages.menus.QmToolbarMenu
public class QmToolbarMenu
Menu displayed while clicking on QM toolbar menu item.
Following features are available on this page:
clickItem(String, String, Class, String...)
: Open the given dialog
by clicking on the given menu item under the category.ClmToolbarMenu.clickRecentlyViewedItem(String, Class, boolean)
: Click on the given
item of the recently viewed list.WebMenu.getItemElement(String, int, boolean, boolean)
: Return the web
element for the item matching the given label.getRecentlyViewedItemElement(String, WebBrowserElement)
: Get the
recently viewed item element.
Constructor Summary | |
---|---|
QmToolbarMenu(ClmWebPage page,
org.openqa.selenium.By menuBy)
|
Method Summary | ||
---|---|---|
|
clickItem(java.lang.String category,
java.lang.String item,
java.lang.Class<P> pageClass,
java.lang.String... data)
Open the given dialog by clicking on the given menu item under the category. |
|
|
clickRecentlyViewedItem(java.lang.String item,
java.lang.Class<P> pageClass,
boolean useItemTextAsData,
java.lang.String... data)
Click on the given item of the recently viewed list. |
|
com.ibm.team.fvt.tests.web.WebBrowserElement |
getItemElement(java.lang.String itemLabel,
boolean displayed)
|
|
com.ibm.team.fvt.tests.web.WebBrowserElement |
getItemElement(java.lang.String category,
java.lang.String itemLabel,
boolean displayed)
Return the web element for the item matching the given label listed under the category |
Methods inherited from class com.ibm.team.fvt.tests.clm.pages.menus.ClmToolbarMenu |
---|
clickItem, clickRecentlyViewedItem, clickRecentlyViewedItem |
Methods inherited from class com.ibm.team.fvt.tests.web.WebMenu |
---|
clickItem, clickItem, clickItem, clickItem, getItemElement, getMenuOptions, getStringMenuOptions, open |
Methods inherited from class com.ibm.team.fvt.tests.web.WebWindow |
---|
cancel, close |
Methods inherited from class com.ibm.team.fvt.tests.web.WebElementWrapper |
---|
getText |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public QmToolbarMenu(ClmWebPage page, org.openqa.selenium.By menuBy)
Method Detail |
---|
public <P extends com.ibm.team.fvt.tests.web.WebPage> P clickItem(java.lang.String category, java.lang.String item, java.lang.Class<P> pageClass, java.lang.String... data)
category
- The category of the menu item (i.e. 'Browse', 'Import')item
- The menu item to click onpageClass
- The class of the dialog to be opened by the item clickdata
- Additional data to store in the opened page
public <P extends com.ibm.team.fvt.tests.web.WebPage> P clickRecentlyViewedItem(java.lang.String item, java.lang.Class<P> pageClass, boolean useItemTextAsData, java.lang.String... data)
Store the expected sub-action of the item.
clickRecentlyViewedItem
in class ClmToolbarMenu
item
- The item labelpageClass
- The page to open if the item is founduseItemTextAsData
- Flag telling whether to use the item text as data
for the opened page. If true
, then eventual additional data
will be ignored.data
- Data to be stored in the opened page.
null
if the item is not found
in the recently viewed list.public com.ibm.team.fvt.tests.web.WebBrowserElement getItemElement(java.lang.String itemLabel, boolean displayed)
If user has no QM write access then wait less for missing items an raise
a ClmNotAllowedOperationError
in case the item is missing.
getItemElement
in class com.ibm.team.fvt.tests.web.WebMenu
public com.ibm.team.fvt.tests.web.WebBrowserElement getItemElement(java.lang.String category, java.lang.String itemLabel, boolean displayed)
category
- The category of the item (i.e. 'Browse', 'Import')itemLabel
- The label of the item to click ondisplayed
- Tells weather the return item has to be displayed or can be hidden.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |