com.ibm.team.fvt.tests.clm.pages.menus
Class QmToolbarMenu

java.lang.Object
  extended by com.ibm.team.fvt.tests.web.WebPageElement
      extended by com.ibm.team.fvt.tests.web.WebElementWrapper
          extended by com.ibm.team.fvt.tests.web.WebWindow
              extended by com.ibm.team.fvt.tests.web.WebMenu
                  extended by com.ibm.team.fvt.tests.clm.pages.menus.ClmMenu
                      extended by com.ibm.team.fvt.tests.clm.pages.menus.ClmToolbarMenu
                          extended by com.ibm.team.fvt.tests.clm.pages.menus.QmToolbarMenu

public class QmToolbarMenu
extends ClmToolbarMenu

Menu displayed while clicking on QM toolbar menu item.

Following features are available on this page:

Following actions are accessible or overridden in this page:


Constructor Summary
QmToolbarMenu(ClmWebPage page, org.openqa.selenium.By menuBy)
           
 
Method Summary
<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)
          Open the given dialog by clicking on the given menu item under the category.
<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)
          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

QmToolbarMenu

public QmToolbarMenu(ClmWebPage page,
                     org.openqa.selenium.By menuBy)
Method Detail

clickItem

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)
Open the given dialog by clicking on the given menu item under the category.

Parameters:
category - The category of the menu item (i.e. 'Browse', 'Import')
item - The menu item to click on
pageClass - The class of the dialog to be opened by the item click
data - Additional data to store in the opened page
Returns:
The opened page

clickRecentlyViewedItem

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)
Click on the given item of the recently viewed list.

Store the expected sub-action of the item.

Overrides:
clickRecentlyViewedItem in class ClmToolbarMenu
Parameters:
item - The item label
pageClass - The page to open if the item is found
useItemTextAsData - 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.
Returns:
The opened page or null if the item is not found in the recently viewed list.

getItemElement

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.

Overrides:
getItemElement in class com.ibm.team.fvt.tests.web.WebMenu

getItemElement

public 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

Parameters:
category - The category of the item (i.e. 'Browse', 'Import')
itemLabel - The label of the item to click on
displayed - Tells weather the return item has to be displayed or can be hidden.
Returns:
The item element