Package org.openqa.selenium.interactions
Class Sequence
- java.lang.Object
-
- org.openqa.selenium.interactions.Sequence
-
- All Implemented Interfaces:
Encodable
public class Sequence extends java.lang.Object implements Encodable
A sequence of action objects for a givenInputSource
for use with the W3C Action commands. In the spec, an action is composed of a list of sequences, one perInputSource
. Each of these is composed ofInteraction
s, with the first item in each sequence being executed at the same time, then the second, and so on, until all interactions in all sequences have been executed.
-
-
Constructor Summary
Constructors Constructor Description Sequence(InputSource device, int initialLength)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Sequence
addAction(Interaction action)
java.util.Map<java.lang.String,java.lang.Object>
encode()
java.util.Map<java.lang.String,java.lang.Object>
toJson()
-
-
-
Constructor Detail
-
Sequence
public Sequence(InputSource device, int initialLength)
-
-
Method Detail
-
addAction
public Sequence addAction(Interaction action)
-
encode
public java.util.Map<java.lang.String,java.lang.Object> encode()
-
toJson
public java.util.Map<java.lang.String,java.lang.Object> toJson()
-
-