Enum Class PlaywrightBrowser

java.lang.Object
java.lang.Enum<PlaywrightBrowser>
com.norconex.crawler.web.fetch.impl.playwright.PlaywrightBrowser
All Implemented Interfaces:
Serializable, Comparable<PlaywrightBrowser>, Constable

public enum PlaywrightBrowser extends Enum<PlaywrightBrowser>
Playwright-supported browser engines.
Since:
4.0.0
  • Enum Constant Details

    • CHROMIUM

      public static final PlaywrightBrowser CHROMIUM
      Chromium-based browser (also used by Google Chrome and Microsoft Edge).
    • FIREFOX

      public static final PlaywrightBrowser FIREFOX
      Mozilla Firefox.
    • WEBKIT

      public static final PlaywrightBrowser WEBKIT
      WebKit-based browser (also used by Apple Safari).
  • Method Details

    • values

      public static PlaywrightBrowser[] 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 PlaywrightBrowser 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
    • browserType

      public abstract com.microsoft.playwright.BrowserType browserType(com.microsoft.playwright.Playwright playwright)
      Returns the Playwright BrowserType for this engine.
      Parameters:
      playwright - the Playwright instance
      Returns:
      the browser type