|
||||||||||
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.WebPopupMenuElement
public class WebPopupMenuElement
Class to manage popup menus.
Popup menus can be considered like window as they also open by clicking on a web element, usually a menu item or drop-down button.
The open operation looks like a window one but have the peculiarity to check that items are loaded before returning.
Additionally, this generic level offers the ability to click on a item.
Constructor Summary | |
---|---|
WebPopupMenuElement(WebPage page)
|
|
WebPopupMenuElement(WebPage page,
By findBy)
|
|
WebPopupMenuElement(WebPage page,
By findBy,
java.lang.String frame)
|
Method Summary | |
---|---|
void |
clickItem(java.lang.String item)
Click on item element found using the given search mechanism. |
WebBrowserElement |
getItemElement(java.lang.String item)
Return the web element for the item matching the given text. |
WebBrowserElement |
getItemElement(java.lang.String item,
boolean visible)
Return the web element for the item matching the given text. |
WebBrowserElement |
open(WebBrowserElement webElement)
Open the window by clicking on the given web element. |
Methods inherited from class com.ibm.team.fvt.tests.web.WebWindow |
---|
cancel, close |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WebPopupMenuElement(WebPage page)
public WebPopupMenuElement(WebPage page, By findBy)
public WebPopupMenuElement(WebPage page, By findBy, java.lang.String frame)
Method Detail |
---|
public void clickItem(java.lang.String item)
item
- The item text to click onpublic WebBrowserElement getItemElement(java.lang.String item)
Note that the returned element has to be visible otherwise this method will fail.
item
- The item text to click onpublic WebBrowserElement getItemElement(java.lang.String item, boolean visible)
Note that the returned element has to be visible otherwise this method will fail.
item
- The item text to click onvisible
- Tells whether the return item has to be visible or can be
hidden.public WebBrowserElement open(WebBrowserElement webElement)
Open the popup-menu found with the given search mechanism and return the corresponding web element.
Note that the popup-menu is opened by clicking on a link element found using the given search mechanism.
When possible, it also waits for all item to be loaded before returning.
open
in class WebWindow
webElement
- The element on which to perform the open action.
WebWindow
subclass.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |