class Capybara::UI::Document
Public Class Methods
new(widget_lookup_scope)
click to toggle source
# File lib/capybara/ui/widgets/document.rb, line 6 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/capybara/ui/widgets/document.rb, line 14 def body xml = Nokogiri::HTML(Capybara.page.body).to_xml Nokogiri::XML(xml, &:noblanks).to_xhtml end
root()
click to toggle source
# File lib/capybara/ui/widgets/document.rb, line 10 def root Capybara.current_session end