Module: Capybara::Lightpanda::ElementExtension
- Defined in:
- lib/capybara/lightpanda/element_extension.rb
Instance Method Summary collapse
Instance Method Details
#with_lightpanda_node(&block) ⇒ Object
12 13 14 15 16 17 |
# File 'lib/capybara/lightpanda/element_extension.rb', line 12 def with_lightpanda_node(&block) raise ArgumentError, "block must be given" unless block raise "#{base.inspect} is not a Capybara::Lightpanda::Node" unless base.is_a?(Capybara::Lightpanda::Node) block.call(base) end |