# File lib/scrubyt/core/navigation/agents/firewatir.rb, line 64 def self.submit(current_form, button=nil, type=nil) @@agent.element_by_xpath(@@current_form).submit @@agent.wait @@current_doc_url = @@agent.url @@mechanize_doc = "<html>#{@@agent.html}</html>" @@hpricot_doc = Hpricot(PreFilterDocument.br_to_newline(@@mechanize_doc)) end