def __init__(self, driver, wait=True): """ Initiates the Actions page :wait: Boolean, waits for the elements in the page if True, default True """ BasePage.__init__(self, driver) if wait: self.wait_for_page_to_load()
def __init__(self, driver, wait=True): """ Initiates the Forgot Password page :wait: Boolean, waits for the elements in the page if True, default True """ BasePage.__init__(self, driver) self.url = "/forgot-password" if wait: self.wait_til_element_is_clickable(ForgotPasswordLocators.title_txt)
def __init__(self, driver, wait=True, go_to_page=False): """ Initiates the Login page :wait: Boolean, waits for the elements in the page if True, default True :go_to_page: Boolean, goes to the page via URL if True, default False """ BasePage.__init__(self, driver) self.url = "/login" if go_to_page: self.go_to_page(wait) elif wait: self.wait_for_page_to_load()