Class RadioButtonGroupElement

java.lang.Object
com.vaadin.testbench.TestBenchElement
com.vaadin.flow.component.radiobutton.testbench.RadioButtonGroupElement
All Implemented Interfaces:
CanCompareScreenshots, HasCallFunction, HasDriver, HasElementQuery, HasHelper, HasPropertySettersGetters, HasSearchContext, HasSelectByText, HasTestBenchCommandExecutor, org.openqa.selenium.SearchContext, org.openqa.selenium.TakesScreenshot, org.openqa.selenium.WebElement, org.openqa.selenium.WrapsElement

public class RadioButtonGroupElement extends TestBenchElement implements HasSelectByText, HasHelper
A TestBench element representing a <vaadin-radio-button-group> element.
  • Constructor Details

    • RadioButtonGroupElement

      public RadioButtonGroupElement()
  • Method Details

    • getOptions

      public List<String> getOptions()
      Gets a list of all available options.
      Returns:
      a list of the options (visible text)
    • selectByText

      public void selectByText(String text)
      Description copied from interface: HasSelectByText
      Selects the first option matching the given text.
      Specified by:
      selectByText in interface HasSelectByText
      Parameters:
      text - the text of the option to select
    • getSelectedText

      public String getSelectedText()
      Description copied from interface: HasSelectByText
      Gets the text of the currently selected option.
      Specified by:
      getSelectedText in interface HasSelectByText
      Returns:
      the text of the current option