Package com.codeborne.selenide
Record Class ScrollIntoViewOptions
java.lang.Object
java.lang.Record
com.codeborne.selenide.ScrollIntoViewOptions
- Record Components:
behavior
- whether scrolling is instant or animates smoothlyblock
- the vertical alignment of the element within the scrollable ancestor containerinline
- the horizontal alignment of the element within the scrollable ancestor container
public record ScrollIntoViewOptions(ScrollIntoViewOptions.Behavior behavior, ScrollIntoViewOptions.Block block, ScrollIntoViewOptions.Inline inline)
extends Record
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
static enum
static enum
-
Constructor Summary
ConstructorsConstructorDescriptionScrollIntoViewOptions
(ScrollIntoViewOptions.Behavior behavior, ScrollIntoViewOptions.Block block, ScrollIntoViewOptions.Inline inline) Creates an instance of aScrollIntoViewOptions
record class. -
Method Summary
Modifier and TypeMethodDescriptionbehavior()
Returns the value of thebehavior
record component.block()
Returns the value of theblock
record component.block
(ScrollIntoViewOptions.Block block) final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.inline()
Returns the value of theinline
record component.inline
(ScrollIntoViewOptions.Inline inline) static ScrollIntoViewOptions
instant()
toJson()
final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
ScrollIntoViewOptions
public ScrollIntoViewOptions(ScrollIntoViewOptions.Behavior behavior, ScrollIntoViewOptions.Block block, ScrollIntoViewOptions.Inline inline) Creates an instance of aScrollIntoViewOptions
record class.
-
-
Method Details
-
instant
-
block
-
inline
-
toJson
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
behavior
Returns the value of thebehavior
record component.- Returns:
- the value of the
behavior
record component
-
block
Returns the value of theblock
record component.- Returns:
- the value of the
block
record component
-
inline
Returns the value of theinline
record component.- Returns:
- the value of the
inline
record component
-