class HomePage(BasePage): def __init__(self): self.binding = WebDriverBinding() def web_page_title(self): return self.binding.find_by_xpath( "//div/h3[contains(text(), 'Home Page')]") def get_provider_portal_link(self): return self.binding.find_by_xpath("//a[@href='/portal']")
class BasePage(object): def __init__(self): self.binding = WebDriverBinding() def get_logout_link(self): logout_link = self.binding.find_by_partial_link_text("Logout") return logout_link def close_page(self): self.binding.close_page()
class HomePage(BasePage): def __init__(self): super(HomePage, self).__init__() self.binding = WebDriverBinding() def web_page_title(self): return self.binding.find_by_xpath("//div/h3[contains(text(), 'Home Page')]") def get_provider_portal_link(self): return self.binding.find_by_clickable("//div[@class='list-group app-list']//a[@href='/portal']")
class LogoutPage(): def __init__(self): self.binding = WebDriverBinding() self.binding.open_page("https://iehie-train.verinovum.com/#/login") def findUserNameField(self): return self.binding.find_by_id("userName") def findPasswordField(self): return self.binding.find_by_id("password") def findButton(self): return self.binding.find_by_id("submit") def get_bindings(self): return self.binding
class LoginPage: def __init__(self): self.binding = WebDriverBinding() self.binding.open_page(host) def findUserNameField(self): return self.binding.find_by_id("userName") def findPasswordField(self): return self.binding.find_by_id("password") def findButton(self): return self.binding.find_by_id("submit") def get_bindings(self): return self.binding
class BasePage: def __init__(self): self.binding = WebDriverBinding() def click_on_logout_link(self): logout_link = self.binding.find_by_partial_link_text("Logout") logout_link.click()
def __init__(self): self.binding = WebDriverBinding()
def __init__(self): super(HomePage, self).__init__() self.binding = WebDriverBinding()
def __init__(self): self.binding = WebDriverBinding() self.binding.open_page("https://iehie-train.verinovum.com/#/login")
def __init__(self): self.binding = WebDriverBinding() self.binding.open_page(host)