# File lib/scrubyt/core/navigation/agents/firewatir.rb, line 199
          def self.fill_textfield(textfield_name, query_string, wait_secs, useValue)
            @@current_form = "//input[@name='#{textfield_name}']/ancestor::form"
            target = @@current_frame || @@agent
            if useValue
              target.text_field(:name,textfield_name).value = query_string              
            else
              target.text_field(:name,textfield_name).set(query_string)
            end
            sleep(wait_secs) if wait_secs > 0
            @@mechanize_doc = "<html>#{@@agent.html}</html>"
            @@hpricot_doc = Hpricot(PreFilterDocument.br_to_newline(@@mechanize_doc))
            
          end