Sha256: 713c2fc0a072eaa745e189e9ba0c977ec2425d1181b8934999df771aa8f84362

Contents?: true

Size: 247 Bytes

Versions: 1

Compression:

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

1 entries across 1 versions & 1 rubygems

Version Path
watir-6.10.1 lib/watir/extensions/nokogiri.rb