Package org.openqa.selenium.interactions
Class WheelInput
- java.lang.Object
-
- org.openqa.selenium.interactions.WheelInput
-
- All Implemented Interfaces:
Encodable,InputSource
public class WheelInput extends java.lang.Object implements InputSource, Encodable
Models a wheel input source.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWheelInput.ScrollOrigin
-
Constructor Summary
Constructors Constructor Description WheelInput(java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InteractioncreateScroll(int x, int y, int deltaX, int deltaY, java.time.Duration duration, WheelInput.ScrollOrigin origin)InteractioncreateScroll(Point start, int deltaX, int deltaY, java.time.Duration duration, WheelInput.ScrollOrigin origin)java.util.Map<java.lang.String,java.lang.Object>encode()SourceTypegetInputType()java.lang.StringgetName()
-
-
-
Method Detail
-
getName
public java.lang.String getName()
- Specified by:
getNamein interfaceInputSource
-
getInputType
public SourceType getInputType()
- Specified by:
getInputTypein interfaceInputSource
-
createScroll
public Interaction createScroll(int x, int y, int deltaX, int deltaY, java.time.Duration duration, WheelInput.ScrollOrigin origin)
-
createScroll
public Interaction createScroll(Point start, int deltaX, int deltaY, java.time.Duration duration, WheelInput.ScrollOrigin origin)
-
-