Sha256: abbd470b109540f2ec69b283c06a402e4588e5cac5dbaa08402a6ac8eb13e89f
Contents?: true
Size: 419 Bytes
Versions: 1
Compression:
Stored size: 419 Bytes
Contents
module Watir class Browser attr_reader :doc # # Store instance of Nokogiri # def doc=(html) @doc = html return if @doc.nil? reset_doc = ->(browser) { browser.doc = nil } after_hooks.add(reset_doc) end # # Uses Nokogiri to return the text of page body. # # @return [String] # def text! body.text! end end # Browser end # Watir
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
watigiri-0.1.0 | lib/extensions/watir/browser.rb |