Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Page.lifecycleEvent #36

Open
nathanjohnson320 opened this issue Mar 3, 2020 · 0 comments
Open

Page.lifecycleEvent #36

nathanjohnson320 opened this issue Mar 3, 2020 · 0 comments

Comments

@nathanjohnson320
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant