Module: Locator::Dom
- Defined in:
- lib/locator/dom.rb,
lib/locator/dom/htmlunit.rb,
lib/locator/dom/nokogiri.rb,
lib/locator/dom/htmlunit/page.rb,
lib/locator/dom/nokogiri/page.rb,
lib/locator/dom/htmlunit/element.rb,
lib/locator/dom/nokogiri/element.rb
Defined Under Namespace
Modules: Htmlunit, Nokogiri
Classes: Element
Class Method Summary
collapse
Class Method Details
.adapter ⇒ Object
9
10
11
|
# File 'lib/locator/dom.rb', line 9
def adapter
@@adapter ||= Nokogiri
end
|
.adapter=(adapter) ⇒ Object
13
14
15
|
# File 'lib/locator/dom.rb', line 13
def adapter=(adapter)
@@adapter = adapter
end
|
.page(html) ⇒ Object
17
18
19
|
# File 'lib/locator/dom.rb', line 17
def page(html)
adapter::Page.new(html)
end
|