def wait_for(element)
      case element
        when :page_load
          browser.wait_for(:wait_for => :page)
        when :ajax
          browser.wait_for(:wait_for => :ajax, :javascript_framework => Pyrite.js_framework)
        else
          browser.wait_for(:element => "jquery=#{element}")
      end
    end
def wait_for(element)
      case element
        when :page_load
          browser.wait_for(:wait_for => :page)
        when :ajax
          browser.wait_for(:wait_for => :ajax, :javascript_framework => Pyrite.js_framework)
        else
          browser.wait_for(:element => "jquery=#{element}")
      end
    end
Wait for a specific element, the page to load
 or an AJAX request to return