Exception: Puppeteer::Bidi::SelectorNotFoundError
- 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
-
#selector ⇒ Object
readonly
Returns the value of attribute selector.
Instance Method Summary collapse
-
#initialize(selector) ⇒ SelectorNotFoundError
constructor
A new instance of SelectorNotFoundError.
Constructor Details
#initialize(selector) ⇒ SelectorNotFoundError
Returns a new instance of SelectorNotFoundError.
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
#selector ⇒ Object (readonly)
Returns the value of attribute selector.
31 32 33 |
# File 'lib/puppeteer/bidi/errors.rb', line 31 def selector @selector end |