Skip to content

Conversation

thalissonvs
Copy link
Member

Summary

  • add PageLoadState enum for document readiness
  • allow configuring page_load_state via Options and wait loop
  • cover new option with tests

Testing

  • PYENV_VERSION=3.11.12 pytest tests/test_browser/test_browser_options.py
  • PYENV_VERSION=3.11.12 pytest (fails: No module named 'aioresponses')

https://chatgpt.com/codex/tasks/task_e_68ab7795b1b083208903f71dbb55c70c

return self._page_load_state

@page_load_state.setter
def page_load_state(self, state: PageLoadState):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe you could add a log warning the user if its setting interactive mode.
something like this: "Running code at 'interactive' state may cause issues — CSS, images, or external scripts might not be fully loaded yet."

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

Successfully merging this pull request may close these issues.

2 participants