Class RadioButton

java.lang.Object
net.serenitybdd.screenplay.ui.RadioButton

public class RadioButton extends Object
An HTML Radio button
  • Constructor Details

    • RadioButton

      public RadioButton()
  • Method Details

    • withId

      public static SearchableTarget withId(String id)
      Locate a radio button with a given name or id.
    • withName

      public static SearchableTarget withName(String name)
      Locate a radio button with a given name
    • withValue

      public static SearchableTarget withValue(String value)
      Locate a radio button with a given value.
    • withLabel

      public static SearchableTarget withLabel(String labelText)
      Locate a radio button with a given label
    • withAriaLabel

      public static SearchableTarget withAriaLabel(String name)
      Locate a button using the ARIA label value
    • withCSSClass

      public static SearchableTarget withCSSClass(String className)
      Look for an element with a given CSS class
    • locatedBy

      public static SearchableTarget locatedBy(String selector)
      Locate a button using an arbitrary CSS or XPath expression
    • located

      public static SearchableTarget located(org.openqa.selenium.By selector)
      Locate a button using an arbitrary CSS or XPath expression