Class SpecificCondition

java.lang.Object
com.codeborne.selenide.WebElementCondition
io.jmix.masquerade.condition.SpecificCondition
Direct Known Subclasses:
CheckedItems, CheckedItemsContains, CheckedItemsCount, DateValue, DialogHeader, Label, NotificationMessage, NotificationMessageContains, NotificationPosition, NotificationTheme, NotificationTitle, NotificationTitleContains, SelectedItems, SelectedItemsContains, SelectedItemsCount, TimeValue, Value, ValueContains, VisibleItems, VisibleItemsContains, VisibleItemsCount

public abstract class SpecificCondition extends com.codeborne.selenide.WebElementCondition
Abstract class for specific conditions.

Specific conditions can only be checked by SpecificConditionHandler. Each SpecificConditionHandler must implement its own check for each specific condition if it supports it.

  • Field Summary

    Fields inherited from class com.codeborne.selenide.WebElementCondition

    missingElementSatisfiesCondition, name
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.codeborne.selenide.CheckResult
    check(com.codeborne.selenide.Driver driver, org.openqa.selenium.WebElement element)
    Delegates the checking of a specific condition to SpecificConditionHandler and returns the result.

    Methods inherited from class com.codeborne.selenide.WebElementCondition

    because, getName, missingElementSatisfiesCondition, negate, or, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • SpecificCondition

      protected SpecificCondition(String name)
  • Method Details

    • check

      public com.codeborne.selenide.CheckResult check(com.codeborne.selenide.Driver driver, org.openqa.selenium.WebElement element)
      Delegates the checking of a specific condition to SpecificConditionHandler and returns the result.
      Specified by:
      check in class com.codeborne.selenide.WebElementCondition
      Parameters:
      driver - selenide driver
      element - given WebElement
      Returns:
      CheckResult.Verdict.ACCEPT if element matches condition, or CheckResult.Verdict.REJECT if element doesn't match (and we should keep trying until timeout).