Browse files

Adds `get_response_code` back in because I accidentally removed it

  • Loading branch information...
1 parent 8291106 commit b2b617fb28936c89f5e6846c2065572340d9ae90 @casschin casschin committed Jan 21, 2013
Showing with 6 additions and 0 deletions.
  1. +6 −0 pages/page.py
View
6 pages/page.py
@@ -109,3 +109,9 @@ def wait_for_ajax(self):
if self.selenium.execute_script("return jQuery.active == 0"):
return
raise Exception("Wait for AJAX timed out after %s seconds" % count)
+
+ def get_response_code(self, url):
+ # return the response status
+ requests_config = {'max_retries': 5}
+ r = requests.get(url, verify=False, config=requests_config)
+ return r.status_code

0 comments on commit b2b617f

Please sign in to comment.