Package io.jmix.masquerade.condition
Record Class SpecificCheck.ElementCheck
java.lang.Object
java.lang.Record
io.jmix.masquerade.condition.SpecificCheck.ElementCheck
- Record Components:
element- element to evaluate the condition againstcondition- standard Selenide condition to evaluate
- All Implemented Interfaces:
SpecificCheck
- Enclosing interface:
SpecificCheck
public static record SpecificCheck.ElementCheck(com.codeborne.selenide.SelenideElement element, com.codeborne.selenide.WebElementCondition condition)
extends Record
implements SpecificCheck
SpecificCheck that evaluates a standard Selenide WebElementCondition against an element.-
Nested Class Summary
Nested classes/interfaces inherited from interface io.jmix.masquerade.condition.SpecificCheck
SpecificCheck.ComputedCheck, SpecificCheck.ElementCheck -
Constructor Summary
ConstructorsConstructorDescriptionElementCheck(com.codeborne.selenide.SelenideElement element, com.codeborne.selenide.WebElementCondition condition) Creates an instance of aElementCheckrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncom.codeborne.selenide.WebElementConditionReturns the value of theconditionrecord component.com.codeborne.selenide.SelenideElementelement()Returns the value of theelementrecord component.final booleanIndicates whether some other object is "equal to" this one.com.codeborne.selenide.CheckResultevaluate(com.codeborne.selenide.Driver driver) Computes the verdict of this check.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ElementCheck
public ElementCheck(com.codeborne.selenide.SelenideElement element, com.codeborne.selenide.WebElementCondition condition) Creates an instance of aElementCheckrecord class.
-
-
Method Details
-
evaluate
public com.codeborne.selenide.CheckResult evaluate(com.codeborne.selenide.Driver driver) Description copied from interface:SpecificCheckComputes the verdict of this check.- Specified by:
evaluatein interfaceSpecificCheck- Parameters:
driver- selenide driver- Returns:
- verdict of the check
-
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). -
element
public com.codeborne.selenide.SelenideElement element()Returns the value of theelementrecord component.- Returns:
- the value of the
elementrecord component
-
condition
public com.codeborne.selenide.WebElementCondition condition()Returns the value of theconditionrecord component.- Returns:
- the value of the
conditionrecord component
-