Class Page.FocusOptions

java.lang.Object
com.microsoft.playwright.Page.FocusOptions
Enclosing interface:
Page

public static class Page.FocusOptions extends Object
  • Field Details

    • strict

      public Boolean strict
      When true, the call requires selector to resolve to a single element. If given selector resolves to more than one element, the call throws an exception.
    • timeout

      public Double timeout
      Maximum time in milliseconds. Defaults to 30000 (30 seconds). Pass 0 to disable timeout. The default value can be changed by using the BrowserContext.setDefaultTimeout() or Page.setDefaultTimeout() methods.
  • Constructor Details

    • FocusOptions

      public FocusOptions()
  • Method Details

    • setStrict

      public Page.FocusOptions setStrict(boolean strict)
      When true, the call requires selector to resolve to a single element. If given selector resolves to more than one element, the call throws an exception.
    • setTimeout

      public Page.FocusOptions setTimeout(double timeout)
      Maximum time in milliseconds. Defaults to 30000 (30 seconds). Pass 0 to disable timeout. The default value can be changed by using the BrowserContext.setDefaultTimeout() or Page.setDefaultTimeout() methods.