java.lang.Object
net.serenitybdd.screenplay.playwright.network.RemoveRoutes

public class RemoveRoutes extends Object
Remove previously registered network route handlers.

Sample usage:

     // Remove all route handlers
     actor.attemptsTo(RemoveRoutes.all());

     // Remove routes matching a specific pattern
     actor.attemptsTo(RemoveRoutes.forUrl("**\/api/**"));
 
  • Method Details

    • all

      public static net.serenitybdd.screenplay.Performable all()
      Remove all registered route handlers.
    • forUrl

      public static net.serenitybdd.screenplay.Performable forUrl(String urlPattern)
      Remove route handlers matching the specified URL pattern.