Package com.microsoft.playwright
Class Tracing.StartOptions
- java.lang.Object
-
- com.microsoft.playwright.Tracing.StartOptions
-
-
Field Summary
Fields Modifier and Type Field Description StringnameIf specified, intermediate trace files are going to be saved into the files with the given name prefix inside thetracesDirfolder specified inBrowserType.launch().BooleanscreenshotsWhether to capture screenshots during tracing.BooleansnapshotsIf this option is true tracing will capture DOM snapshot on every action record network activityBooleansourcesWhether to include source files for trace actions.StringtitleTrace name to be shown in the Trace Viewer.
-
Constructor Summary
Constructors Constructor Description StartOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Tracing.StartOptionssetName(String name)If specified, intermediate trace files are going to be saved into the files with the given name prefix inside thetracesDirfolder specified inBrowserType.launch().Tracing.StartOptionssetScreenshots(boolean screenshots)Whether to capture screenshots during tracing.Tracing.StartOptionssetSnapshots(boolean snapshots)If this option is true tracing will capture DOM snapshot on every action record network activityTracing.StartOptionssetSources(boolean sources)Whether to include source files for trace actions.Tracing.StartOptionssetTitle(String title)Trace name to be shown in the Trace Viewer.
-
-
-
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 thetracesDirfolder specified inBrowserType.launch(). To specify the final trace zip file name, you need to passpathoption toTracing.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 viaPLAYWRIGHT_JAVA_SRCenvironment 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.
-
-
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 thetracesDirfolder specified inBrowserType.launch(). To specify the final trace zip file name, you need to passpathoption toTracing.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 viaPLAYWRIGHT_JAVA_SRCenvironment 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.
-
-