Class AttributeWithValue

java.lang.Object
com.codeborne.selenide.Condition
com.codeborne.selenide.conditions.AttributeWithValue
Direct Known Subclasses:
Href

@ParametersAreNonnullByDefault public class AttributeWithValue extends Condition
  • Field Details

    • expectedAttributeValue

      protected final String expectedAttributeValue
  • Constructor Details

    • AttributeWithValue

      public AttributeWithValue(String attributeName, String expectedAttributeValue)
  • Method Details

    • check

      @Nonnull public CheckResult check(Driver driver, org.openqa.selenium.WebElement element)
      Description copied from class: Condition
      Check if given element matches this condition
      Overrides:
      check in class Condition
      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).
    • getAttributeValue

      protected String getAttributeValue(org.openqa.selenium.WebElement element)