playwright_trace_browser package¶
A TUI app for exploring Playwright traces
Submodules¶
playwright_trace_browser.app module¶
- class playwright_trace_browser.app.PlaywrightTraceBrowser[source]¶
Bases:
AppTextual Playwright trace browser app.
- BINDINGS: ClassVar[list[BindingType]] = [('q', 'quit', 'Quit')]¶
- CSS_PATH: ClassVar[CSSPathType | None] = 'app.tcss'¶
File paths to load CSS from.
- __init__()[source]¶
Create an instance of an app.
- Args:
- driver_class: Driver class or None to auto-detect.
This will be used by some Textual tools.
- css_path: Path to CSS or None to use the CSS_PATH class variable.
To load multiple CSS files, pass a list of strings or paths which will be loaded in order.
- watch_css: Reload CSS if the files changed. This is set automatically if
you are using textual run with the dev switch.
- Raises:
CssPathError: When the supplied CSS path(s) are an unexpected type.