Package com.codeborne.selenide
Record Class ModalOptions
java.lang.Object
java.lang.Record
com.codeborne.selenide.ModalOptions
- All Implemented Interfaces:
HasTimeout
public record ModalOptions(@Nullable String expectedText, @Nullable Duration timeout)
extends Record
implements HasTimeout
-
Constructor Summary
ConstructorsConstructorDescriptionModalOptions(@Nullable String expectedText, @Nullable Duration timeout) Creates an instance of aModalOptionsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.@Nullable StringReturns the value of theexpectedTextrecord component.final inthashCode()Returns a hash code value for this object.static ModalOptionsnone()@Nullable Durationtimeout()Returns the value of thetimeoutrecord component.toString()Returns a string representation of this record class.static ModalOptionswithExpectedText(@Nullable String expectedText) static ModalOptionswithTimeout(Duration timeout)
-
Constructor Details
-
ModalOptions
Creates an instance of aModalOptionsrecord class.- Parameters:
expectedText- the value for theexpectedTextrecord componenttimeout- the value for thetimeoutrecord component
-
-
Method Details
-
none
-
withExpectedText
-
withTimeout
-
timeout
-
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). -
expectedText
Returns the value of theexpectedTextrecord component.- Returns:
- the value of the
expectedTextrecord component
-
timeout
Returns the value of thetimeoutrecord component.- Specified by:
timeoutin interfaceHasTimeout- Returns:
- the value of the
timeoutrecord component
-