Skip to content

Page.lifecycleEvent #36

@nathanjohnson320

Description

@nathanjohnson320

Hi all, great library. I'm trying to subscribe to the Page.lifecycleEvent in the below snippet:

with {:ok, _data} <- RPC.Page.enable(pid),
     #  :ok <- PageSession.subscribe(pid, "Page.loadEventFired", self()),
     :ok <- PageSession.subscribe(pid, "Page.lifecycleEvent", self()),
     {:ok, data} <- RPC.Page.navigate(pid, %{url: url}) do
    IO.inspect(data)
end

From my understanding on navigation the lifecycle event should fire, I'm also trying to listen for network idle events which the lifecycleEvent covers. But in both cases it never does anything. The Page.loadEventFired works properly but that doesn't wait for network idle.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions