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: App

Textual 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.

compose()[source]

Compose our UI.

Return type:

Iterable[Widget]

async on_directory_tree_file_selected(event)[source]

Called when the user click a file in the directory tree.

Return type:

None

on_mount()[source]
Return type:

None

async open_image(path)[source]
Return type:

None

async open_trace_viewer(path)[source]
Return type:

None