public class AbstractPopupMenu.AdvancedPopupMenuInteractions extends Object
| Constructor and Description |
|---|
AbstractPopupMenu.AdvancedPopupMenuInteractions() |
| Modifier and Type | Method and Description |
|---|---|
List<org.openqa.selenium.WebElement> |
getItemsElements()
Returns menu items elements.
|
List<org.openqa.selenium.WebElement> |
getMenuItemElements()
Returns all elements of this menu
|
org.openqa.selenium.WebElement |
getMenuPopup() |
protected int |
getShowDelay() |
org.openqa.selenium.WebElement |
getTargetElement() |
long |
getTimeoutForPopupMenuToBeNotVisible() |
long |
getTimeoutForPopupMenuToBeVisible() |
void |
hide()
Dismisses currently displayed popup menu.
|
void |
setupHideDelay() |
void |
setupHideDelay(int newHideDelayInMillis)
Delay (in ms) between losing focus and menu closing
|
void |
setupShowDelay() |
void |
setupShowDelay(int newShowDelayInMillis)
Sets the delay which is between showevent observing and the menu opening
|
void |
setupShowEvent() |
void |
setupShowEvent(Event newShowEvent) |
void |
setupShowEventFromWidget() |
void |
setupTarget() |
void |
setupTarget(org.openqa.selenium.WebElement target) |
void |
setupTargetFromWidget() |
void |
setupTimeoutForPopupMenuToBeNotVisible(long timeoutInMilliseconds) |
void |
setupTimeoutForPopupMenuToBeVisible(long timeoutInMilliseconds) |
void |
show()
Invokes popup menu in the middle of the currently set target.
|
void |
show(org.openqa.selenium.WebElement givenTarget)
Invokes popup menu in the middle of the given target.
|
void |
show(org.openqa.selenium.WebElement givenTarget,
org.openqa.selenium.Point location)
Invokes popup menu on a given point within the given target.
|
WaitingWrapper |
waitUntilIsNotVisible()
Waits until the popup menu is visible.
|
WaitingWrapper |
waitUntilIsVisible() |
public AbstractPopupMenu.AdvancedPopupMenuInteractions()
public void hide()
IllegalStateException - when no popup menu is displayed in the time of invokingpublic List<org.openqa.selenium.WebElement> getItemsElements()
public List<org.openqa.selenium.WebElement> getMenuItemElements()
public org.openqa.selenium.WebElement getMenuPopup()
protected int getShowDelay()
public org.openqa.selenium.WebElement getTargetElement()
public void show()
setInvoker() method. You have to have a target set before
invocation of this method.#setupInvoker(PopupMenuInvoker),
#setTarget(WebElement)public void show(org.openqa.selenium.WebElement givenTarget)
setInvoker() method. It also works with the default value of
showDelay == 50ms. Use #setShowDelay if this value is different for this menu.givenTarget - #setupInvoker(PopupMenuInvoker),
setupShowDelay(int)public void show(org.openqa.selenium.WebElement givenTarget,
org.openqa.selenium.Point location)
setInvoker() method.givenTarget - location - #setupInvoker(PopupMenuInvoker)public void setupHideDelay()
public void setupHideDelay(int newHideDelayInMillis)
newHideDelayInMillis - public void setupShowEvent()
public void setupShowEvent(Event newShowEvent)
public void setupShowEventFromWidget()
public void setupShowDelay()
public void setupShowDelay(int newShowDelayInMillis)
newShowDelayInMillis - public void setupTarget()
public void setupTarget(org.openqa.selenium.WebElement target)
public void setupTargetFromWidget()
public void setupTimeoutForPopupMenuToBeNotVisible(long timeoutInMilliseconds)
public long getTimeoutForPopupMenuToBeNotVisible()
public void setupTimeoutForPopupMenuToBeVisible(long timeoutInMilliseconds)
public long getTimeoutForPopupMenuToBeVisible()
public WaitingWrapper waitUntilIsNotVisible()
showDelay which has default value 50ms.setupShowDelay(int)public WaitingWrapper waitUntilIsVisible()
Copyright © 2014 JBoss by Red Hat. All rights reserved.