Class Page.QuerySelectorOptions

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

public static class Page.QuerySelectorOptions 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.
  • Constructor Details

    • QuerySelectorOptions

      public QuerySelectorOptions()
  • Method Details

    • setStrict

      public Page.QuerySelectorOptions 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.