Package com.codeborne.selenide
Record Class SetValueOptions
java.lang.Object
java.lang.Record
com.codeborne.selenide.SetValueOptions
public record SetValueOptions(SetValueMethod method, CharSequence value, CharSequence displayedText)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionSetValueOptions(SetValueMethod method, CharSequence value, CharSequence displayedText) Creates an instance of aSetValueOptionsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedisplayedTextrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.method()Returns the value of themethodrecord component.toString()Returns a string representation of this record class.usingMethod(SetValueMethod method) How exactly the value should be set (either "sendKeys" or JavaScript call)value()Returns the value of thevaluerecord component.static SetValueOptionsText value to set into input field oftype="date"static SetValueOptionswithDateTime(LocalDateTime dateTime) Text value to set into input field oftype="datetime-local"withDisplayedText(CharSequence displayedText) How this value will be displayed in reports.static SetValueOptionswithText(CharSequence text) Text value to set into input fieldstatic SetValueOptionsText value to set into input field oftype="time"
-
Constructor Details
-
SetValueOptions
Creates an instance of aSetValueOptionsrecord class.- Parameters:
method- the value for themethodrecord componentvalue- the value for thevaluerecord componentdisplayedText- the value for thedisplayedTextrecord component
-
-
Method Details
-
withText
Text value to set into input field -
withDate
Text value to set into input field oftype="date" -
withDateTime
Text value to set into input field oftype="datetime-local" -
withTime
Text value to set into input field oftype="time" -
usingMethod
How exactly the value should be set (either "sendKeys" or JavaScript call) -
withDisplayedText
How this value will be displayed in reports. Useful to mask sensitive values like passwords etc. -
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. All components in this record class are compared withObjects::equals(Object,Object). -
method
Returns the value of themethodrecord component.- Returns:
- the value of the
methodrecord component
-
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-
displayedText
Returns the value of thedisplayedTextrecord component.- Returns:
- the value of the
displayedTextrecord component
-