WaitUntilOption

enum WaitUntilOption : String

Enum representing the various states to wait for before considering a navigation or page action complete.

  • load: Wait until the load event is fired, indicating that the entire page and all dependent resources have loaded.
  • domcontentloaded: Wait until the DOMContentLoaded event is fired, indicating that the HTML is fully parsed, but stylesheets, images, and subframes may still be loading.
  • networkidle: Wait until the network is idle, meaning there are no ongoing network requests for a specified time period (0.5s). This state implies that most, if not all, resources have been fetched and processed.