Sha256: c3f57c135dbcaba35c61e3c131c6050d6796a813fa88c3dd6d1ad055c0b162a3

Contents?: true

Size: 231 Bytes

Versions: 20

Compression:

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

20 entries across 20 versions & 1 rubygems

Version Path
watir-7.1.0 lib/watir/extensions/nokogiri.rb
watir-7.0.0 lib/watir/extensions/nokogiri.rb
watir-7.0.0.beta5 lib/watir/extensions/nokogiri.rb
watir-7.0.0.beta4 lib/watir/extensions/nokogiri.rb
watir-7.0.0.beta3 lib/watir/extensions/nokogiri.rb
watir-7.0.0.beta2 lib/watir/extensions/nokogiri.rb
watir-7.0.0.beta1 lib/watir/extensions/nokogiri.rb
watir-6.19.1 lib/watir/extensions/nokogiri.rb
watir-6.19.0 lib/watir/extensions/nokogiri.rb
watir-6.18.0 lib/watir/extensions/nokogiri.rb
watir-6.17.0 lib/watir/extensions/nokogiri.rb
watir-6.16.5 lib/watir/extensions/nokogiri.rb
watir-6.16.4 lib/watir/extensions/nokogiri.rb
watir-6.16.3 lib/watir/extensions/nokogiri.rb
watir-6.16.2 lib/watir/extensions/nokogiri.rb
watir-6.16.1 lib/watir/extensions/nokogiri.rb
watir-6.16.0 lib/watir/extensions/nokogiri.rb
watir-6.15.1 lib/watir/extensions/nokogiri.rb
watir-6.15.0 lib/watir/extensions/nokogiri.rb
watir-6.14.0 lib/watir/extensions/nokogiri.rb