Merge "Add page forward and refresh wrapper functions"
This commit is contained in:
commit
67dee8e968
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user