Class: Katalyst::Kpop::Matchers::CapybaraParser Private

Inherits:
Base
  • Object
show all
Defined in:
lib/katalyst/kpop/matchers/capybara_parser.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Attribute Summary

Attributes inherited from Base

#matched

Instance Method Summary collapse

Methods inherited from Base

#matches?

Instance Method Details

#match(_, actual) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



8
9
10
11
# File 'lib/katalyst/kpop/matchers/capybara_parser.rb', line 8

def match(_, actual)
  @html = Nokogiri::HTML5.parse(actual.body)
  Capybara::Node::Simple.new(@html)
end