class Dill::Document
Public Class Methods
new(widget_lookup_scope)
click to toggle source
# File lib/dill/widgets/document.rb, line 5 def initialize(widget_lookup_scope) self.widget_lookup_scope = widget_lookup_scope or raise 'No scope given' end
Public Instance Methods
body()
click to toggle source
# File lib/dill/widgets/document.rb, line 13 def body xml = Nokogiri::HTML(Capybara.page.body).to_xml Nokogiri::XML(xml, &:noblanks).to_xhtml end
root()
click to toggle source
# File lib/dill/widgets/document.rb, line 9 def root Capybara.current_session end