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 enumstatic enumstatic enum -
Constructor Summary
ConstructorsConstructorDescriptionScrollIntoViewOptions(ScrollIntoViewOptions.Behavior behavior, ScrollIntoViewOptions.Block block, ScrollIntoViewOptions.Inline inline) Creates an instance of aScrollIntoViewOptionsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbehavior()Returns the value of thebehaviorrecord component.block()Returns the value of theblockrecord component.block(ScrollIntoViewOptions.Block block) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.inline()Returns the value of theinlinerecord component.inline(ScrollIntoViewOptions.Inline inline) static ScrollIntoViewOptionsinstant()toJson()final StringtoString()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 aScrollIntoViewOptionsrecord 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 thebehaviorrecord component.- Returns:
- the value of the
behaviorrecord component
-
block
Returns the value of theblockrecord component.- Returns:
- the value of the
blockrecord component
-
inline
Returns the value of theinlinerecord component.- Returns:
- the value of the
inlinerecord component
-