PhoenixTest.Playwright.EventListener (PhoenixTestPlaywright v0.7.0)

View Source

Background playwright event listener.

This function starts a background process that will automatically handle events according to the provided callback function.

Optional callback stack

The current callback is the top most on the callback stack. A new callback can be set via push_callback/2, and the previous callback can be reverted to via pop_callback/1.

Summary

Functions

Returns a specification to start this module under a supervisor.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

pop_callback(name)

push_callback(name, callback)

start_link(args, opts \\ [])