CDP Performance
Chrome DevTools Protocol (CDP) Performance API to capture metrics.
Selenium 4 uses the Chrome DevTools Protocol (CDP) which has a "Performance.getMetrics"
command! Pylenium provides a simple wrapper to capture these metrics.
Syntax
Usage
The Dictionary of performance metrics returned includes metrics like:
ScriptDuration
ThreadTime
ProcessTime
DomContentLoaded
correct usage
dictionary
Arguments
None
Yields
Dict
Examples
Last updated