Class Tracing.StartOptions

java.lang.Object
com.microsoft.playwright.Tracing.StartOptions
Enclosing interface:
Tracing

public static class Tracing.StartOptions extends Object
  • Field Details

    • name

      public String name
      If specified, the trace is going to be saved into the file with the given name inside the tracesDir folder specified in BrowserType.launch().
    • screenshots

      public Boolean screenshots
      Whether to capture screenshots during tracing. Screenshots are used to build a timeline preview.
    • snapshots

      public Boolean snapshots
      If this option is true tracing will
      • capture DOM snapshot on every action
      • record network activity
    • sources

      public Boolean sources
      Whether to include source files for trace actions. List of the directories with source code for the application must be provided via PLAYWRIGHT_JAVA_SRC environment variable (the paths should be separated by ';' on Windows and by ':' on other platforms).
    • title

      public String title
      Trace name to be shown in the Trace Viewer.
  • Constructor Details

    • StartOptions

      public StartOptions()
  • Method Details

    • setName

      public Tracing.StartOptions setName(String name)
      If specified, the trace is going to be saved into the file with the given name inside the tracesDir folder specified in BrowserType.launch().
    • setScreenshots

      public Tracing.StartOptions setScreenshots(boolean screenshots)
      Whether to capture screenshots during tracing. Screenshots are used to build a timeline preview.
    • setSnapshots

      public Tracing.StartOptions setSnapshots(boolean snapshots)
      If this option is true tracing will
      • capture DOM snapshot on every action
      • record network activity
    • setSources

      public Tracing.StartOptions setSources(boolean sources)
      Whether to include source files for trace actions. List of the directories with source code for the application must be provided via PLAYWRIGHT_JAVA_SRC environment variable (the paths should be separated by ';' on Windows and by ':' on other platforms).
    • setTitle

      public Tracing.StartOptions setTitle(String title)
      Trace name to be shown in the Trace Viewer.