Enum Class PageLoadStrategy

java.lang.Object
java.lang.Enum<PageLoadStrategy>
io.karatelabs.driver.PageLoadStrategy
All Implemented Interfaces:
Serializable, Comparable<PageLoadStrategy>, Constable

public enum PageLoadStrategy extends Enum<PageLoadStrategy>
Page load strategies for navigation.
  • Enum Constant Details

    • DOMCONTENT

      public static final PageLoadStrategy DOMCONTENT
      Wait for DOMContentLoaded event only.
    • DOMCONTENT_AND_FRAMES

      public static final PageLoadStrategy DOMCONTENT_AND_FRAMES
      Wait for DOMContentLoaded + all frames stopped loading (v1 default).
    • LOAD

      public static final PageLoadStrategy LOAD
      Wait for Page.loadEventFired event.
    • NETWORKIDLE

      public static final PageLoadStrategy NETWORKIDLE
      Wait for no network activity for 500ms.
  • Method Details

    • values

      public static PageLoadStrategy[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static PageLoadStrategy valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null