# File lib/scrubyt/core/navigation/agents/firewatir.rb, line 112 def self.click_by_xpath(xpath) Scrubyt.log :ACTION, "Clicking by XPath : %p" % xpath @@agent.element_by_xpath(xpath).click @@agent.wait @@current_doc_url = @@agent.url @@mechanize_doc = "<html>#{@@agent.html}</html>" @@hpricot_doc = Hpricot(PreFilterDocument.br_to_newline(@@mechanize_doc)) Scrubyt.log :ACTION, "Fetching #{@@current_doc_url}" end