Sha256: 39f2c324be0fde870404460c120ed720ee004a3d2c7383a2a7da970e0df3ea92
Contents?: true
Size: 756 Bytes
Versions: 3
Compression:
Stored size: 756 Bytes
Contents
# Querying HTML See: [Nokogiri: Searching an HTML / XML Document](https://nokogiri.org/tutorials/searching_a_xml_html_document.html#basic-searching) === "Nokogiri" ```ruby class DummyJob < Wayfarer::Base route.to :index def index page.doc.css("html") page.doc.xpath("//html") end end ``` === "Ferrum" ```ruby class DummyJob < Wayfarer::Base route.to :index def index browser.at_css("html") browser.at_xpath("//html") end end ``` === "Selenium" ```ruby class DummyJob < Wayfarer::Base route.to :index def index browser.find_elements(css: "html") browser.find_elements(xpath: "//html") end end ```
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
wayfarer-0.4.7 | docs/cookbook/querying_html.md |
wayfarer-0.4.1 | docs/cookbook/querying_html.md |
wayfarer-0.4.0 | docs/cookbook/querying_html.md |