Class PlaywrightSession

java.lang.Object
com.shaft.gui.playwright.internal.PlaywrightSession
All Implemented Interfaces:
AutoCloseable

public final class PlaywrightSession extends Object implements AutoCloseable
Owns a single Playwright runtime session for one SHAFT GUI driver instance.
  • Method Details

    • playwright

      public com.microsoft.playwright.Playwright playwright()
    • browser

      public com.microsoft.playwright.Browser browser()
    • browserContext

      public com.microsoft.playwright.BrowserContext browserContext()
    • page

      public com.microsoft.playwright.Page page()
    • setPage

      public void setPage(com.microsoft.playwright.Page page)
    • traceManager

      public PlaywrightTraceManager traceManager()
    • isDialogSeen

      public boolean isDialogSeen()
    • lastDialogText

      public String lastDialogText()
    • acceptNextDialog

      public void acceptNextDialog()
    • dismissNextDialog

      public void dismissNextDialog()
    • typeIntoNextPrompt

      public void typeIntoNextPrompt(String text)
    • pageHandle

      public String pageHandle(com.microsoft.playwright.Page targetPage)
    • pageByHandle

      public com.microsoft.playwright.Page pageByHandle(String handle)
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable