Exception: Puppeteer::Bidi::SelectorNotFoundError

Inherits:
Error
  • Object
show all
Defined in:
lib/puppeteer/bidi/errors.rb,
sig/puppeteer/bidi/errors.rbs

Overview

Raised when a selector does not match any elements

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(selector) ⇒ SelectorNotFoundError

Returns a new instance of SelectorNotFoundError.

Parameters:

  • selector (Object)


33
34
35
36
# File 'lib/puppeteer/bidi/errors.rb', line 33

def initialize(selector)
  @selector = selector
  super("Error: failed to find element matching selector \"#{selector}\"")
end

Instance Attribute Details

#selectorObject (readonly)

Returns the value of attribute selector.

Returns:

  • (Object)


31
32
33
# File 'lib/puppeteer/bidi/errors.rb', line 31

def selector
  @selector
end