Package com.microsoft.playwright
Class Tracing.StartOptions
java.lang.Object
com.microsoft.playwright.Tracing.StartOptions
- Enclosing interface:
Tracing
-
Field Summary
FieldsModifier and TypeFieldDescriptionIf specified, the trace is going to be saved into the file with the given name inside thetracesDirfolder specified inBrowserType.launch().Whether to capture screenshots during tracing.If this option is true tracing will capture DOM snapshot on every action record network activityWhether to include source files for trace actions.Trace name to be shown in the Trace Viewer. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionIf specified, the trace is going to be saved into the file with the given name inside thetracesDirfolder specified inBrowserType.launch().setScreenshots(boolean screenshots) Whether to capture screenshots during tracing.setSnapshots(boolean snapshots) If this option is true tracing will capture DOM snapshot on every action record network activitysetSources(boolean sources) Whether to include source files for trace actions.Trace name to be shown in the Trace Viewer.
-
Field Details
-
name
If specified, the trace is going to be saved into the file with the given name inside thetracesDirfolder specified inBrowserType.launch(). -
screenshots
Whether to capture screenshots during tracing. Screenshots are used to build a timeline preview. -
snapshots
If this option is true tracing will- capture DOM snapshot on every action
- record network activity
-
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
Trace name to be shown in the Trace Viewer.
-
-
Constructor Details
-
StartOptions
public StartOptions()
-
-
Method Details
-
setName
If specified, the trace is going to be saved into the file with the given name inside thetracesDirfolder specified inBrowserType.launch(). -
setScreenshots
Whether to capture screenshots during tracing. Screenshots are used to build a timeline preview. -
setSnapshots
If this option is true tracing will- capture DOM snapshot on every action
- record network activity
-
setSources
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
Trace name to be shown in the Trace Viewer.
-