Class WithDevTools

java.lang.Object
net.serenitybdd.screenplay.actions.WithDevTools
All Implemented Interfaces:
net.serenitybdd.core.SkipNested, net.serenitybdd.markers.CanBeSilent, net.serenitybdd.screenplay.Performable

public class WithDevTools extends Object implements net.serenitybdd.screenplay.Performable, net.serenitybdd.markers.CanBeSilent
Perform an action directly using the DevTools API For example:
     
         actor.attemptsTo(
             WithDevTools.perform(
                 devTools -> devTools.createSession()
             )
         );
     
 
  • Constructor Details

    • WithDevTools

      public WithDevTools(Consumer<org.openqa.selenium.devtools.DevTools> action)
  • Method Details

    • perform

      public static WithDevTools perform(Consumer<org.openqa.selenium.devtools.DevTools> action)
    • ask

      public static net.serenitybdd.screenplay.Question<Object> ask(Function<org.openqa.selenium.devtools.DevTools,Object> question)
    • performAs

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

      public boolean isSilent()
      Specified by:
      isSilent in interface net.serenitybdd.markers.CanBeSilent
    • withNoReporting

      public net.serenitybdd.screenplay.Performable withNoReporting()