speed_test v0.1.0 SpeedTest.Page.Session

Manages individual browser pages

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor.

width integer Overriding width value in pixels (minimum 0, maximum 10000000). 0 disables the override. height integer Overriding height value in pixels (minimum 0, maximum 10000000). 0 disables the override. deviceScaleFactor number Overriding device scale factor value. 0 disables the override. mobile boolean Whether to emulate mobile device. This includes viewport meta tag, overlay scrollbars, text autosizing and more. screenOrientation ScreenOrientation Screen orientation override.

Link to this section Functions

Link to this function

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function

handle_call(msg, from, state)

width integer Overriding width value in pixels (minimum 0, maximum 10000000). 0 disables the override. height integer Overriding height value in pixels (minimum 0, maximum 10000000). 0 disables the override. deviceScaleFactor number Overriding device scale factor value. 0 disables the override. mobile boolean Whether to emulate mobile device. This includes viewport meta tag, overlay scrollbars, text autosizing and more. screenOrientation ScreenOrientation Screen orientation override.

Link to this function

start_link(_, map)

start_link(any(), %{page: any()}) :: :ignore | {:error, any()} | {:ok, pid()}