SeleniumBase/examples/raw_performance_logs.py

8 lines
191 B
Python

from rich.pretty import pprint
from seleniumbase import SB
with SB(log_cdp=True) as sb:
sb.open("seleniumbase.io/demo_page")
sb.sleep(1)
pprint(sb.driver.get_log("performance"))