Class ClickOnElement
java.lang.Object
net.serenitybdd.screenplay.actions.ClickOnElement
- All Implemented Interfaces:
net.serenitybdd.core.SkipNested,ClickInteraction,net.serenitybdd.screenplay.Performable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected net.serenitybdd.core.pages.ClickStrategy -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionWait until the element is present and enabled before clickingWait until the element is present before clicking (default behaviour)net.serenitybdd.core.pages.ClickStrategy<T extends net.serenitybdd.screenplay.Actor>
voidperformAs(T theUser) Click immediately, do not check whether the element is present first.withStrategy(net.serenitybdd.core.pages.ClickStrategy clickStrategy) Specify the click strategy explicitlyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.serenitybdd.screenplay.Performable
then
-
Field Details
-
clickStrategy
protected net.serenitybdd.core.pages.ClickStrategy clickStrategy
-
-
Constructor Details
-
ClickOnElement
public ClickOnElement(net.serenitybdd.core.pages.WebElementFacade element)
-
-
Method Details
-
performAs
public <T extends net.serenitybdd.screenplay.Actor> void performAs(T theUser) -
afterWaitingUntilEnabled
Description copied from interface:ClickInteractionWait until the element is present and enabled before clicking- Specified by:
afterWaitingUntilEnabledin interfaceClickInteraction
-
afterWaitingUntilPresent
Description copied from interface:ClickInteractionWait until the element is present before clicking (default behaviour)- Specified by:
afterWaitingUntilPresentin interfaceClickInteraction
-
withNoDelay
Description copied from interface:ClickInteractionClick immediately, do not check whether the element is present first.- Specified by:
withNoDelayin interfaceClickInteraction
-
getClickStrategy
public net.serenitybdd.core.pages.ClickStrategy getClickStrategy() -
withStrategy
Description copied from interface:ClickInteractionSpecify the click strategy explicitly- Specified by:
withStrategyin interfaceClickInteraction
-