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

public class Navigate extends Object
Browser navigation interactions - back, forward, refresh.

Sample usage:

     actor.attemptsTo(
         Navigate.back(),
         Navigate.forward(),
         Navigate.refresh()
     );
 
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static net.serenitybdd.screenplay.Performable
    Navigate back in browser history.
    static net.serenitybdd.screenplay.Performable
    Navigate forward in browser history.
    static net.serenitybdd.screenplay.Performable
    Refresh the current page.
    static net.serenitybdd.screenplay.Performable
    Navigate to a specific URL.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Navigate

      public Navigate()
  • Method Details

    • back

      public static net.serenitybdd.screenplay.Performable back()
      Navigate back in browser history.
    • forward

      public static net.serenitybdd.screenplay.Performable forward()
      Navigate forward in browser history.
    • refresh

      public static net.serenitybdd.screenplay.Performable refresh()
      Refresh the current page.
    • toUrl

      public static net.serenitybdd.screenplay.Performable toUrl(String url)
      Navigate to a specific URL.