Class AbstractField<T extends AbstractField<T>>

Type Parameters:
T -
All Implemented Interfaces:
SpecificConditionHandler, ByLocator, SelenideElementWrapper<T>
Direct Known Subclasses:
AbstractOverlayComponent, AbstractTextInput, DatePicker, DateTimePicker, EntityPicker, TimePicker

public abstract class AbstractField<T extends AbstractField<T>> extends AbstractComponent<T>
Abstract class for field web-element wrappers. Supports Value, ValueContains, Label condition checking.
  • Constructor Details

    • AbstractField

      protected AbstractField(org.openqa.selenium.By by)
  • Method Details

    • check

      public com.codeborne.selenide.CheckResult check(SpecificCondition condition)
      Description copied from interface: SpecificConditionHandler
      Checks whether the current handler matches the passed SpecificCondition.
      Specified by:
      check in interface SpecificConditionHandler
      Overrides:
      check in class AbstractSpecificConditionHandler<T extends AbstractField<T>>
      Parameters:
      condition - condition to check
      Returns:
      CheckResult that contains CheckResult.Verdict.ACCEPT if the current handler matches the passed SpecificCondition, CheckResult.Verdict.REJECT otherwise
    • getInputDelegate

      protected com.codeborne.selenide.SelenideElement getInputDelegate()
      Returns:
      SelenideElement of an input web-element
    • getLabelDelegate

      protected com.codeborne.selenide.SelenideElement getLabelDelegate()
      Returns:
      SelenideElement of a label web-element