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.0.0.beta4 lib/watir/extensions/nokogiri.rb
watir-6.0.0.beta3 lib/watir/extensions/nokogiri.rb
watir-6.0.0.beta2 lib/watir/extensions/nokogiri.rb
watir-6.0.0.beta1 lib/watir/extensions/nokogiri.rb
watir-webdriver-0.9.3 lib/watir-webdriver/extensions/nokogiri.rb
watir-webdriver-0.9.2 lib/watir-webdriver/extensions/nokogiri.rb
watir-webdriver-0.9.1 lib/watir-webdriver/extensions/nokogiri.rb
watir-webdriver-0.9.0 lib/watir-webdriver/extensions/nokogiri.rb
watir-webdriver-0.8.0 lib/watir-webdriver/extensions/nokogiri.rb