I\'m using selenium to test an AjaxRequest:
driver.execute_script("InitiateAjaxRequest(\'refresh\');")