java.lang.Object
net.serenitybdd.screenplay.playwright.interactions.SelectFromOptions

public class SelectFromOptions extends Object
Select an option from dropdown by text, value or index. More info: https://playwright.dev/java/docs/api/class-page/#page-select-option.

Sample usage:

     SelectFromOptions.byValue("Option 1").from("#dropdown");
 
  • Constructor Details

    • SelectFromOptions

      public SelectFromOptions(net.serenitybdd.screenplay.playwright.interactions.SelectStrategy strategy)
  • Method Details

    • byValue

      public static SelectFromOptions byValue(String... values)
    • byVisibleText

      public static SelectFromOptions byVisibleText(String visibleText)
    • byIndex

      public static SelectFromOptions byIndex(int indexValue)
    • from

      public net.serenitybdd.screenplay.Performable from(String cssOrXpathForElement)
    • from

      public net.serenitybdd.screenplay.Performable from(Target target)