Sha256: 38793b44a8224efaa002f99b7c0df0dfd9bac201cd272a8537dfc04811a1691f

Contents?: true

Size: 233 Bytes

Versions: 49

Compression:

Stored size: 233 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

49 entries across 49 versions & 2 rubygems

Version Path
watir-6.13.0 lib/watir/extensions/nokogiri.rb
watir-6.12.0 lib/watir/extensions/nokogiri.rb
watir-6.11.0 lib/watir/extensions/nokogiri.rb
watir-6.11.0.beta2 lib/watir/extensions/nokogiri.rb
watir-6.11.0.beta1 lib/watir/extensions/nokogiri.rb
watir-6.10.3 lib/watir/extensions/nokogiri.rb
watir-6.10.2 lib/watir/extensions/nokogiri.rb
watir-6.10.0 lib/watir/extensions/nokogiri.rb
watir-6.9.1 lib/watir/extensions/nokogiri.rb
watir-6.9.0 lib/watir/extensions/nokogiri.rb
watir-6.8.4 lib/watir/extensions/nokogiri.rb
watir-6.8.3 lib/watir/extensions/nokogiri.rb
watir-6.8.2 lib/watir/extensions/nokogiri.rb
watir-6.8.1 lib/watir/extensions/nokogiri.rb
watir-6.8.0 lib/watir/extensions/nokogiri.rb
watir-6.7.3 lib/watir/extensions/nokogiri.rb
watir-6.7.2 lib/watir/extensions/nokogiri.rb
watir-6.7.1 lib/watir/extensions/nokogiri.rb
watir-6.7.0 lib/watir/extensions/nokogiri.rb
watir-6.6.3 lib/watir/extensions/nokogiri.rb