Class RadioButtonGroup

All Implemented Interfaces:
SpecificConditionHandler, ByLocator, SelenideElementWrapper<RadioButtonGroup>

public class RadioButtonGroup extends AbstractComponent<RadioButtonGroup>
Web-element wrapper for radio button group. Supports selecting radio buttons, Label, Value, VisibleItems, VisibleItemsContains and VisibleItemsCount condition checking.
  • Constructor Details

    • RadioButtonGroup

      public RadioButtonGroup(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<RadioButtonGroup>
      Parameters:
      condition - condition to check
      Returns:
      CheckResult that contains CheckResult.Verdict.ACCEPT if the current handler matches the passed SpecificCondition, CheckResult.Verdict.REJECT otherwise
    • select

      public RadioButtonGroup select(String label)
      Selects the radio button with the passed label.
      Parameters:
      label - label of the radio button to select
      Returns:
      this to call fluent API
    • select

      public RadioButtonGroup select(org.openqa.selenium.By radioButtonBy)
      Selects the radio button by the passed By selector.
      Parameters:
      radioButtonBy - By selector to find the radio button to select
      Returns:
      this to call fluent API
    • mapLabelToBy

      protected org.openqa.selenium.By mapLabelToBy(String radioButtonLabel)
    • getRadioButtonInput

      protected com.codeborne.selenide.SelenideElement getRadioButtonInput(org.openqa.selenium.By radioButtonBy)
    • getLabelDelegate

      protected com.codeborne.selenide.SelenideElement getLabelDelegate()
    • getCheckedRadioButtonLabelElement

      protected com.codeborne.selenide.SelenideElement getCheckedRadioButtonLabelElement()
    • getRadioButtonLabelTexts

      protected List<String> getRadioButtonLabelTexts()