Merge "Add page forward and refresh wrapper functions"

This commit is contained in:
Jenkins 2015-01-21 13:58:21 +00:00 committed by Gerrit Code Review
commit 67dee8e968

View File

@ -64,9 +64,15 @@ class PageObject(basewebobject.BaseWebObject):
else:
self.driver.switch_to.window(self.driver.window_handles[-1])
def return_to_previous_page(self):
def go_to_previous_page(self):
self.driver.back()
def go_to_next_page(self):
self.driver.forward()
def refresh_page(self):
self.driver.refresh()
def go_to_login_page(self):
self.driver.get(self.login_url)
self.is_the_current_page()