|
||||||||||
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
WebMenu
instead
@Deprecated 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)
Deprecated. |
|
WebPopupMenuElement(WebPage page,
org.openqa.selenium.By findBy)
Deprecated. |
|
WebPopupMenuElement(WebPage page,
org.openqa.selenium.By findBy,
java.lang.String frame)
Deprecated. |
|
WebPopupMenuElement(WebPage page,
WebBrowserElement parentElement)
Deprecated. |
Method Summary | |
---|---|
void |
clickItem(java.lang.String item)
Deprecated. Click on item element found using the given search mechanism. |
WebBrowserElement |
getItemElement(java.lang.String item)
Deprecated. Return the web element for the item matching the given text. |
WebBrowserElement |
getItemElement(java.lang.String item,
boolean visible)
Deprecated. Return the web element for the item matching the given text. |
java.util.List<WebBrowserElement> |
getMenuOptions()
Deprecated. Returns the list of Menu option elements within this popup menu. |
java.util.List<java.lang.String> |
getStringMenuOptions(boolean shouldClose)
Deprecated. Returns the list of Menu option elements within this popup menu. |
WebBrowserElement |
open(WebBrowserElement webElement)
Deprecated. 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, org.openqa.selenium.By findBy)
public WebPopupMenuElement(WebPage page, org.openqa.selenium.By findBy, java.lang.String frame)
public WebPopupMenuElement(WebPage page, WebBrowserElement parentElement)
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 java.util.List<WebBrowserElement> getMenuOptions()
public java.util.List<java.lang.String> getStringMenuOptions(boolean shouldClose)
shouldClose
- - true if we should close the menu after providing the list
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 |