Exemplo n.º 1
0
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']")
Exemplo n.º 2
0
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()
Exemplo n.º 3
0
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']")
Exemplo n.º 4
0
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
Exemplo n.º 5
0
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
Exemplo n.º 6
0
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()
Exemplo n.º 7
0
 def __init__(self):
     self.binding = WebDriverBinding()
Exemplo n.º 8
0
 def __init__(self):
     super(HomePage, self).__init__()
     self.binding = WebDriverBinding()
Exemplo n.º 9
0
 def __init__(self):
     self.binding = WebDriverBinding()
     self.binding.open_page("https://iehie-train.verinovum.com/#/login")
Exemplo n.º 10
0
 def __init__(self):
     self.binding = WebDriverBinding()
     self.binding.open_page(host)