Package com.codeborne.selenide
Record Class ModalOptions
java.lang.Object
java.lang.Record
com.codeborne.selenide.ModalOptions
- All Implemented Interfaces:
HasTimeout
@ParametersAreNonnullByDefault
public record ModalOptions(@Nullable String expectedText, @Nullable Duration timeout)
extends Record
implements HasTimeout
-
Constructor Summary
ConstructorDescriptionModalOptions
(String expectedText, Duration timeout) Creates an instance of aModalOptions
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.Returns the value of theexpectedText
record component.final int
hashCode()
Returns a hash code value for this object.static ModalOptions
none()
timeout()
Returns the value of thetimeout
record component.toString()
Returns a string representation of this record class.static ModalOptions
withExpectedText
(String expectedText) static ModalOptions
withTimeout
(Duration timeout)
-
Constructor Details
-
ModalOptions
Creates an instance of aModalOptions
record class.- Parameters:
expectedText
- the value for theexpectedText
record componenttimeout
- the value for thetimeout
record component
-
-
Method Details
-
none
-
withExpectedText
@CheckReturnValue @Nonnull public static ModalOptions withExpectedText(@Nullable String expectedText) -
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 theexpectedText
record component.- Returns:
- the value of the
expectedText
record component
-
timeout
Returns the value of thetimeout
record component.- Specified by:
timeout
in interfaceHasTimeout
- Returns:
- the value of the
timeout
record component
-