PhoenixTest.Playwright.BrowserContext (PhoenixTestPlaywright v0.6.2)

View Source

Interact with a Playwright BrowserContext.

There is no official documentation, since this is considered Playwright internal.

References:

Summary

Functions

Removes all cookies from the context

Open a new browser page and return its guid.

Start tracing. The results can be retrieved via stop_tracing/2.

Stop tracing and write zip file to specified output path.

Functions

clear_cookies(context_id, opts \\ [])

Removes all cookies from the context

new_page(context_id)

Open a new browser page and return its guid.

start_tracing(context_id, opts \\ [])

Start tracing. The results can be retrieved via stop_tracing/2.

stop_tracing(context_id, output_path)

Stop tracing and write zip file to specified output path.

Trace can be viewed via either