lib/watir/extensions/nokogiri.rb in watir-6.10.1 vs lib/watir/extensions/nokogiri.rb in watir-6.10.2

- old
+ new

@@ -1,14 +1,14 @@ -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 +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