Package org.openqa.selenium.interactions
Class Pause
- java.lang.Object
-
- org.openqa.selenium.interactions.Interaction
-
- org.openqa.selenium.interactions.Pause
-
- All Implemented Interfaces:
Encodable
public class Pause extends Interaction implements Encodable
Indicates that a givenInputSource
should pause for a given duration.
-
-
Constructor Summary
Constructors Constructor Description Pause(InputSource device, java.time.Duration duration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.Object>
encode()
protected boolean
isValidFor(SourceType sourceType)
-
Methods inherited from class org.openqa.selenium.interactions.Interaction
getSource
-
-
-
-
Constructor Detail
-
Pause
public Pause(InputSource device, java.time.Duration duration)
- Parameters:
duration
- If 0, this means "wait until all other actions in the tick have been evaluated". Must be greater than 0.
-
-
Method Detail
-
isValidFor
protected boolean isValidFor(SourceType sourceType)
- Overrides:
isValidFor
in classInteraction
-
-