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

Adds loadstate tracking to frame #13

Closed
wants to merge 1 commit into from

Conversation

dbrody
Copy link
Contributor

@dbrody dbrody commented Nov 12, 2021

Allows for listening to loadstate changes on the page to wait for things like networkidle, domcontentloaded and load etc.

page |> Playwright.Page.on("loadstate", fn frame, event ->
  if Enum.member?(frame.loadstate, "networkidle") do
     # Network Idle
  end
end)

Also adds response to the requestFinished event.

@dbrody
Copy link
Contributor Author

dbrody commented Nov 22, 2021

Closing as I think this is stale given all the changes and additions to the repo.

@dbrody dbrody closed this Nov 22, 2021
@dbrody dbrody deleted the feature/networkstatus branch December 13, 2021 01:38
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

Successfully merging this pull request may close these issues.

None yet

1 participant