def __init__(self, driver): super(RegisterPage, self).__init__(driver) self.bot.wait_for_element_by(Locator.xpath("//h2[text()='Register']"))
def click_on_delete_user_lnk(self, user_name): self.bot.click_on_element_by( Locator.xpath("//li[contains(.,'{0}')]/a".format(user_name)))
def __init__(self, driver): ''' Construbdctor ''' super(LoginPage, self).__init__(driver) self.bot.wait_for_element_by(Locator.xpath("//h2[text()='Login']"))
def __init__(self, driver): super(DashboardPage, self).__init__(driver) self.bot.wait_for_element_by(Locator.xpath("//h1[contains(.,'Hi')]"))