Sha256: 63e5d768b16e4c0603f985f52d430307970a94448d37938f847468b1919f02e9

Contents?: true

Size: 236 Bytes

Versions: 11

Compression:

Stored size: 236 Bytes

Contents

require "nokogiri"

module Watir
  class Browser

    def text
      doc = Nokogiri::HTML(body(:index => 0).html)
      doc.css("script").remove # encoding bug in older libxml?

      doc.inner_text
    end

  end # Browser
end # Watir

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
watir-webdriver-0.7.0 lib/watir-webdriver/extensions/nokogiri.rb
watir-webdriver-0.6.11 lib/watir-webdriver/extensions/nokogiri.rb
watir-webdriver-0.6.10 lib/watir-webdriver/extensions/nokogiri.rb
watir-webdriver-0.6.9 lib/watir-webdriver/extensions/nokogiri.rb
watir-webdriver-0.6.8 lib/watir-webdriver/extensions/nokogiri.rb
watir-webdriver-0.6.7 lib/watir-webdriver/extensions/nokogiri.rb
watir-webdriver-0.6.6 lib/watir-webdriver/extensions/nokogiri.rb
watir-webdriver-0.6.5 lib/watir-webdriver/extensions/nokogiri.rb
watir-webdriver-0.6.4 lib/watir-webdriver/extensions/nokogiri.rb
watir-webdriver-0.6.3 lib/watir-webdriver/extensions/nokogiri.rb
watir-webdriver-0.6.2 lib/watir-webdriver/extensions/nokogiri.rb