# File lib/scrubyt/core/navigation/agents/firewatir.rb, line 73 def self.submit(current_form, sleep_time=nil, button=nil, type=nil) if @@current_frame #BRUTAL hax but FW is such a shitty piece of software #this sucks FAIL omg @@current_frame.locate form = Document.new(@@current_frame).all.find{|t| t.tagName=="FORM"} form.submit else @@agent.element_by_xpath(@@current_form).submit end if sleep_time sleep sleep_time @@agent.wait end @@current_doc_url = @@agent.url @@mechanize_doc = "<html>#{@@agent.html}</html>" @@hpricot_doc = Hpricot(PreFilterDocument.br_to_newline(@@mechanize_doc)) end