public class ClickOnElement extends Object
| Modifier and Type | Field and Description |
|---|---|
protected ClickStrategy |
clickStrategy |
| Constructor and Description |
|---|
ClickOnElement(WebElementFacade element) |
| Modifier and Type | Method and Description |
|---|---|
ClickInteraction |
afterWaitingUntilEnabled()
Wait until the element is present and enabled before clicking
|
ClickInteraction |
afterWaitingUntilPresent()
Wait until the element is present before clicking (default behaviour)
|
ClickStrategy |
getClickStrategy() |
<T extends Actor> |
performAs(T theUser) |
ClickInteraction |
withNoDelay()
Click immediately, do not check whether the element is present first.
|
ClickInteraction |
withStrategy(ClickStrategy clickStrategy)
Specify the click strategy explicitly
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitthenprotected ClickStrategy clickStrategy
public ClickOnElement(WebElementFacade element)
public <T extends Actor> void performAs(T theUser)
public ClickInteraction afterWaitingUntilEnabled()
ClickInteractionafterWaitingUntilEnabled in interface ClickInteractionpublic ClickInteraction afterWaitingUntilPresent()
ClickInteractionafterWaitingUntilPresent in interface ClickInteractionpublic ClickInteraction withNoDelay()
ClickInteractionwithNoDelay in interface ClickInteractionpublic ClickStrategy getClickStrategy()
public ClickInteraction withStrategy(ClickStrategy clickStrategy)
ClickInteractionwithStrategy in interface ClickInteractionCopyright © 2023. All rights reserved.