Class Performance
- java.lang.Object
-
- org.openqa.selenium.devtools.performance.Performance
-
public class Performance extends java.lang.Object
All available DevTools Network methods and events Google Documentation
-
-
Constructor Summary
Constructors Constructor Description Performance()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Command<java.lang.Void>
disable()
Disable collecting and reporting metrics.static Command<java.lang.Void>
enable()
Enable collecting and reporting metrics.static Command<java.util.List<Metric>>
getMetrics()
Retrieve current values of run-time metrics.static Command<java.lang.Void>
setTimeDomain(TimeDomain timeDomain)
Warning this is an Experimental Method Sets time domain to use for collecting and reporting duration metrics.
-
-
-
Method Detail
-
disable
public static Command<java.lang.Void> disable()
Disable collecting and reporting metrics.
-
enable
public static Command<java.lang.Void> enable()
Enable collecting and reporting metrics.
-
setTimeDomain
@Beta public static Command<java.lang.Void> setTimeDomain(TimeDomain timeDomain)
Warning this is an Experimental Method Sets time domain to use for collecting and reporting duration metrics. Note that this must be called before enabling metrics collection. Calling this method while metrics collection is enabled returns an error.EXPERIMENTAL- Parameters:
timeDomain
- -TimeDomain
-
-