Class Page.WaitForSelectorOptions

  • Enclosing interface:
    Page

    public static class Page.WaitForSelectorOptions
    extends Object
    • Field Detail

      • state

        public WaitForSelectorState state
        Defaults to "visible". Can be either:
        • "attached" - wait for element to be present in DOM.
        • "detached" - wait for element to not be present in DOM.
        • "visible" - wait for element to have non-empty bounding box and no visibility:hidden. Note that element without any content or with display:none has an empty bounding box and is not considered visible.
        • "hidden" - wait for element to be either detached from DOM, or have an empty bounding box or visibility:hidden. This is opposite to the "visible" option.
      • 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 Detail

      • WaitForSelectorOptions

        public WaitForSelectorOptions()
    • Method Detail

      • setState

        public Page.WaitForSelectorOptions setState​(WaitForSelectorState state)
        Defaults to "visible". Can be either:
        • "attached" - wait for element to be present in DOM.
        • "detached" - wait for element to not be present in DOM.
        • "visible" - wait for element to have non-empty bounding box and no visibility:hidden. Note that element without any content or with display:none has an empty bounding box and is not considered visible.
        • "hidden" - wait for element to be either detached from DOM, or have an empty bounding box or visibility:hidden. This is opposite to the "visible" option.
      • setStrict

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