Sha256: a0510a34622946875d83cc25c89ff83a026490b1549e96f270f614b36b9e14fb
Contents?: true
Size: 598 Bytes
Versions: 5
Compression:
Stored size: 598 Bytes
Contents
module Watir class Browser attr_reader :doc # # Store instance of Nokogiri # def doc=(html) @doc = html return if html.nil? @reset_doc_hook = ->(browser) { browser.reset_doc } after_hooks.add(@reset_doc_hook) end def reset_doc @doc = nil after_hooks.delete(@reset_doc_hook) end # # Uses Nokogiri to return the text of page body. # # @return [String] # def text! body.text! end def locator_namespace @locator_namespace ||= Watigiri::Locators end end # Browser end # Watir
Version data entries
5 entries across 5 versions & 1 rubygems