from commom.appDriver import get_app_driver

driver = get_app_driver(r'C:\Users\Administrator\AppData\Local\Programs\xmqxy\小麦企学院.exe')

# 手机号登录
def app_login(driver):

    driver.find_element_by_id("rc-tabs-0-tab-2").click()
    driver.find_element_by_id("xmphone").click()
    driver.find_element_by_id("xmphone").send_keys("15068165765")
    driver.find_element_by_id("xmpwd").click()
    driver.find_element_by_id("xmpwd").send_keys("0000")
    driver.find_element_by_class_name("submit").click()

    return app_login

if __name__ == '__main__':
    app_login(driver)