Class ScrollParameter
- java.lang.Object
-
- io.appium.java_client.flutter.commands.FlutterCommandParameter
-
- io.appium.java_client.flutter.commands.ScrollParameter
-
public class ScrollParameter extends FlutterCommandParameter
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ScrollParameter.ScrollDirection
-
Constructor Summary
Constructors Constructor Description ScrollParameter(AppiumBy.FlutterBy scrollTo)
Constructs a new ScrollOptions object with the given parameters.ScrollParameter(AppiumBy.FlutterBy scrollTo, ScrollParameter.ScrollDirection scrollDirection)
Constructs a new ScrollOptions object with the given parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.Object>
toJson()
-
Methods inherited from class io.appium.java_client.flutter.commands.FlutterCommandParameter
parseFlutterLocator
-
-
-
-
Constructor Detail
-
ScrollParameter
public ScrollParameter(AppiumBy.FlutterBy scrollTo)
Constructs a new ScrollOptions object with the given parameters.- Parameters:
scrollTo
- the locator used for scrolling to a specific element
-
ScrollParameter
public ScrollParameter(AppiumBy.FlutterBy scrollTo, ScrollParameter.ScrollDirection scrollDirection)
Constructs a new ScrollOptions object with the given parameters.- Parameters:
scrollTo
- the locator used for scrolling to a specific elementscrollDirection
- the direction in which to scroll (e.g., ScrollDirection.DOWN)- Throws:
java.lang.IllegalArgumentException
- if scrollTo is null
-
-
Method Detail
-
toJson
public java.util.Map<java.lang.String,java.lang.Object> toJson()
- Specified by:
toJson
in classFlutterCommandParameter
-
-