java.lang.Object
net.serenitybdd.screenplay.playwright.interactions.Uncheck
All Implemented Interfaces:
net.serenitybdd.core.SkipNested, net.serenitybdd.screenplay.Performable

public class Uncheck extends Object implements net.serenitybdd.screenplay.Performable
Uncheck a checkbox element.

Sample usage:

     actor.attemptsTo(
         Uncheck.checkbox("#terms"),
         Uncheck.checkbox(TERMS_CHECKBOX)
     );
 
  • Constructor Details

    • Uncheck

      public Uncheck(Target target)
  • Method Details

    • checkbox

      public static Uncheck checkbox(String selector)
      Uncheck a checkbox identified by a selector.
    • checkbox

      public static Uncheck checkbox(Target target)
      Uncheck a Target checkbox.
    • withOptions

      public Uncheck withOptions(com.microsoft.playwright.Locator.UncheckOptions options)
      Provide additional uncheck options.
    • performAs

      public <T extends net.serenitybdd.screenplay.Actor> void performAs(T actor)
      Specified by:
      performAs in interface net.serenitybdd.screenplay.Performable