Package com.codeborne.selenide
Record Class TypeOptions
java.lang.Object
java.lang.Record
com.codeborne.selenide.TypeOptions
public record TypeOptions(CharSequence textToType, CharSequence displayText, Duration timeDelayWhileTyping, boolean shouldClearFieldBeforeTyping)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionTypeOptions(CharSequence textToType, CharSequence displayText, Duration timeDelayWhileTyping, boolean shouldClearFieldBeforeTyping) Creates an instance of aTypeOptionsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionclearFirst(boolean shouldClearFieldBeforeTyping) Returns the value of thedisplayTextrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theshouldClearFieldBeforeTypingrecord component.static TypeOptionstext(CharSequence textToType) Returns the value of thetextToTyperecord component.Returns the value of thetimeDelayWhileTypingrecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
TypeOptions
public TypeOptions(CharSequence textToType, CharSequence displayText, Duration timeDelayWhileTyping, boolean shouldClearFieldBeforeTyping) Creates an instance of aTypeOptionsrecord class.- Parameters:
textToType- the value for thetextToTyperecord componentdisplayText- the value for thedisplayTextrecord componenttimeDelayWhileTyping- the value for thetimeDelayWhileTypingrecord componentshouldClearFieldBeforeTyping- the value for theshouldClearFieldBeforeTypingrecord component
-
-
Method Details
-
text
-
withDelay
-
clearFirst
-
sensitive
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
textToType
Returns the value of thetextToTyperecord component.- Returns:
- the value of the
textToTyperecord component
-
displayText
Returns the value of thedisplayTextrecord component.- Returns:
- the value of the
displayTextrecord component
-
timeDelayWhileTyping
Returns the value of thetimeDelayWhileTypingrecord component.- Returns:
- the value of the
timeDelayWhileTypingrecord component
-
shouldClearFieldBeforeTyping
public boolean shouldClearFieldBeforeTyping()Returns the value of theshouldClearFieldBeforeTypingrecord component.- Returns:
- the value of the
shouldClearFieldBeforeTypingrecord component
-