示例#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']")
示例#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()
示例#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']")
示例#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
示例#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
示例#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()
示例#7
0
 def __init__(self):
     self.binding = WebDriverBinding()
示例#8
0
 def __init__(self):
     super(HomePage, self).__init__()
     self.binding = WebDriverBinding()
示例#9
0
 def __init__(self):
     self.binding = WebDriverBinding()
     self.binding.open_page("https://iehie-train.verinovum.com/#/login")
示例#10
0
 def __init__(self):
     self.binding = WebDriverBinding()
     self.binding.open_page(host)