public abstract class AbstractPopupMenu.AdvancedPopupMenuInteractions extends Object implements VisibleComponentInteractions
Constructor and Description |
---|
AbstractPopupMenu.AdvancedPopupMenuInteractions() |
Modifier and Type | Method and Description |
---|---|
protected Event |
getDefaultShowEvent() |
List<org.openqa.selenium.WebElement> |
getItemsElements()
Returns menu items elements.
|
abstract List<org.openqa.selenium.WebElement> |
getMenuItemElements()
Returns all elements of this menu
|
abstract org.openqa.selenium.WebElement |
getMenuPopup() |
protected abstract org.openqa.selenium.WebElement |
getScriptElement() |
protected int |
getShowDelay() |
protected Event |
getShowEvent() |
org.openqa.selenium.WebElement |
getTargetElement() |
long |
getTimeoutForPopupMenuToBeNotVisible() |
long |
getTimeoutForPopupMenuToBeVisible() |
void |
hide()
Dismisses currently displayed popup menu.
|
boolean |
isVisible() |
void |
setHideDelay() |
void |
setHideDelay(int newHideDelayInMillis)
Delay (in ms) between losing focus and menu closing
|
void |
setShowDelay() |
void |
setShowDelay(int newShowDelayInMillis)
Sets the delay which is between showevent observing and the menu opening
|
void |
setShowEvent() |
void |
setShowEvent(Event newShowEvent) |
void |
setShowEventFromWidget() |
void |
setTarget() |
void |
setTarget(org.openqa.selenium.WebElement target) |
void |
setTargetFromWidget() |
void |
setTimeoutForPopupMenuToBeNotVisible(long timeoutInMilliseconds) |
void |
setTimeoutForPopupMenuToBeVisible(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 abstract List<org.openqa.selenium.WebElement> getMenuItemElements()
protected abstract org.openqa.selenium.WebElement getScriptElement()
public abstract 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.#setInvoker(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)
,
setShowDelay(int)
public void show(org.openqa.selenium.WebElement givenTarget, org.openqa.selenium.Point location)
setInvoker()
method.givenTarget
- location
- #setupInvoker(PopupMenuInvoker)
public void setHideDelay()
public void setHideDelay(int newHideDelayInMillis)
newHideDelayInMillis
- protected Event getDefaultShowEvent()
protected Event getShowEvent()
public void setShowEvent()
public void setShowEvent(Event newShowEvent)
public void setShowEventFromWidget()
public void setShowDelay()
public void setShowDelay(int newShowDelayInMillis)
newShowDelayInMillis
- public void setTarget()
public void setTarget(org.openqa.selenium.WebElement target)
public void setTargetFromWidget()
public void setTimeoutForPopupMenuToBeNotVisible(long timeoutInMilliseconds)
public long getTimeoutForPopupMenuToBeNotVisible()
public void setTimeoutForPopupMenuToBeVisible(long timeoutInMilliseconds)
public long getTimeoutForPopupMenuToBeVisible()
public WaitingWrapper waitUntilIsNotVisible()
showDelay
which has default value 50ms.setShowDelay(int)
public WaitingWrapper waitUntilIsVisible()
public boolean isVisible()
isVisible
in interface VisibleComponentInteractions
Copyright © 2016 JBoss by Red Hat. All Rights Reserved.