Exemple #1
0
def auth(driver, config):

    page_object = BasePage(driver, config)
    login = config['email']
    paswd = config['password']
    locator = basic_locators.BasePageLocators()
    page_object.click(locator.AUTH_BUTTON)
    page_object.find(locator.EMAIL).send_keys(login)
    page_object.find(locator.PASSWORD).send_keys(paswd)
    page_object.click(locator.ACCEPT)

    return MainPage(driver, config)
Exemple #2
0
def incorrect_input(driver, config):

    page_object = BasePage(driver, config)
    login = '******'
    paswd = 'Incorrect_user_password'
    config['fake_email'] = login
    locator = basic_locators.BasePageLocators()
    page_object.click(locator.AUTH_BUTTON)
    page_object.find(locator.EMAIL).send_keys(login)
    page_object.find(locator.PASSWORD).send_keys(paswd)
    page_object.click(locator.ACCEPT)

    return MainPage(driver, config)
Exemple #3
0
 def __init__(self, driver):
     self.driver = driver
     self.base_page = BasePage(self)
     self.registration = Registration(self)
     self.wizard = Wizard(self)
     self.dashboard = DashBoard(self)
     self.account = Account(self)
def base_page(driver, config):
    return BasePage(driver, config)
Exemple #5
0
def base_page(driver):
    return BasePage(driver=driver)
Exemple #6
0
 def __init__(self, driver):
     if 'dashboard' not in driver.current_url:
         raise AuthFailedException
     BasePage.__init__(self, driver)
def auto(driver):
    page = BasePage(driver)
    page.authorization(page.user, page.password)
    return BasePage(page.driver)
Exemple #8
0
def reg(driver, username, email, password):
    page = BasePage(driver)
    page.go_to_reg()
    regPage = RegPage(driver)
    regPage.reg(username, email, password)
Exemple #9
0
def auth(driver):
    page = BasePage(driver)
    page.auth(page.LOGIN, page.PASSWORD)
def auto_auth(driver):
    page = BasePage(driver)
    page.auth(page.EMAIL, page.PASSWORD)
    return CabinetPage(page.driver)
Exemple #11
0
 def __init__(self, driver):
     BasePage.__init__(self, driver)
Exemple #12
0
 def __init__(self, driver):
     BasePage.__init__(self, driver)
     self.driver.get(self.url)