Class: Locator::Dom::Nokogiri::Page

Inherits:
Element
  • Object
show all
Defined in:
lib/locator/dom/nokogiri/page.rb

Instance Method Summary collapse

Constructor Details

#initialize(dom) ⇒ Page

Returns a new instance of Page.



5
6
7
8
# File 'lib/locator/dom/nokogiri/page.rb', line 5

def initialize(dom)
  dom = ::Nokogiri::HTML::Document.parse(dom) if dom.is_a?(String)
  super
end

Instance Method Details

#domObject



10
11
12
# File 'lib/locator/dom/nokogiri/page.rb', line 10

def dom
  element
end