def pppoe(driver, url, config): print('D1_pppoe') time.sleep(5) password = config.get('admin_pw') user = config.get('pppoe_user') pw = config.get('pppoe_pwd') Page_script.open_url(driver, url) Page_script.login(driver, password) if Page_script.connect_pppoe(driver, user, pw) == 1: print('pppoe connect success') else: print('pppoe connect fail!!!')
def pppoe(driver, url, config): print('D1_pppoe') time.sleep(5) password = config.get('admin_pw') user = config.get('pppoe_user') pw = config.get('pppoe_pwd') Page_script.open_url(driver, url) Page_script.login(driver, password) if Page_script.connect_pppoe(driver, user, pw) == 1: print('pppoe connect success') else: print('pppoe connect fail!!!')
def do_test(driver, url): if Page_script.open_url(driver, url): time.sleep(3) else: return 0 if Page_script.login(driver, pw): time.sleep(3) else: return 0 if Page_script.connect_pppoe(driver, pppoe_pst, pppoe_pwd) == 1: time.sleep(3) return 1 else: return 0