Class Tracing.StartOptions

  • Enclosing interface:
    Tracing

    public static class Tracing.StartOptions
    extends Object
    • Field Detail

      • name

        public String name
        If specified, intermediate trace files are going to be saved into the files with the given name prefix inside the tracesDir folder specified in BrowserType.launch(). To specify the final trace zip file name, you need to pass path option to Tracing.stop() instead.
      • 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 Detail

      • StartOptions

        public StartOptions()
    • Method Detail

      • setName

        public Tracing.StartOptions setName​(String name)
        If specified, intermediate trace files are going to be saved into the files with the given name prefix inside the tracesDir folder specified in BrowserType.launch(). To specify the final trace zip file name, you need to pass path option to Tracing.stop() instead.
      • 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).