Exemple #1
0
def login(driver, username, password):
    lp = LoginPage(driver)
    driver.swicth_to.frame(lp.getFrame())
    lp.getUserName().clear()
    lp.getUserName().send_keys(username)
    lp.getPassword().send_keys(password)
    lp.getLoginButton().click()
Exemple #2
0
def login(driver, userename, passord):

    lp = LoginPage(driver)
    driver.switch_to.frame(lp.getFrame())
    lp.getclick().click()
    lp.getUserName().send_keys(userename)
    lp.getPassword().send_keys(passord)
    lp.getLoginButton().click()
    lp.driver.switch_to.default_content()
    time.sleep(3)