Esempio n. 1
0
def change_pppoe_id_passwd(self,username,password):
    try:
        wan_control.set_wan_pppoe_userpwd(self,username,password)
        #点击保存应用
        wan_control.apply(self)
        time.sleep(60)
    #捕捉异常并打印异常信息
    except Exception,e:
        print u"改变pppoe的用户名和密码的过程失败,原因如下:\n%s"%e
Esempio n. 2
0
def change_pppoe(self,username,password):
    try:
        driver = self.driver
        driver.implicitly_wait(10)
        #协议选择pppoe
        wan_control.set_wan_protrocol(self,'pppoe')
        #点击切换协议
        wan_control.set_wan_switchprotocol(self)
        driver.implicitly_wait(10)
        wan_control.set_wan_pppoe_userpwd(self,username,password)
        #点击保存应用
        wan_control.apply(self)
        time.sleep(60)
    #捕捉异常并打印异常信息
    except Exception,e:
        print u"把路由WAN口改为pppoe的过程失败,原因如下:\n%s"%e