def netcase_163_login(netcase_163_driver, user_name, user_pass):
    netcase_login_frame = netcase_163_driver.find_element_by_tag_name('iframe')
    wait_for_frame_and_switch_to_frame(netcase_163_driver, netcase_login_frame)
    wait_for_element_exist(netcase_163_driver, '//input[@name="email"]')
    element = find_element_by_name(netcase_163_driver, 'email')
    element.click()
    element.send_keys(user_name)
    wait_for_element_exist(netcase_163_driver, '//input[@name="password"]')
    element = find_element_by_name(netcase_163_driver, 'password')
    element.click()
    element.send_keys(user_pass)
    element = find_element_by_id(netcase_163_driver, 'dologin')
    element.click()
def netcase_163_login(netcase_163_driver, user_name, user_pass):
    netcase_login_frame = netcase_163_driver.find_element_by_tag_name('iframe')
    wait_for_frame_and_switch_to_frame(netcase_163_driver, netcase_login_frame)
    wait_for_element_exist(netcase_163_driver, '//input[@name="email"]')
    element = find_element_by_name(netcase_163_driver, 'email')
    element.click()
    element.send_keys(user_name)
    wait_for_element_exist(netcase_163_driver, '//input[@name="password"]')
    element = find_element_by_name(netcase_163_driver, 'password')
    element.click()
    element.send_keys(user_pass)
    element = find_element_by_id(netcase_163_driver, 'dologin')
    element.click()