Beispiel #1
0
def remove_web(self):
    weblist_control.tabmenu_weblist(self)
    weblist = weblist_control.get_weblist(self)
    while 1:
        weblist_control.remove_button(self, 1)
        tmp = weblist_control.get_weblist(self)
        if tmp == [""]:
            break
    weblist_control.apply(self)
    time.sleep(40)
    result = network_control.ssh_wifidog()
    assert result, "wifidog进程没起来,无法进行下一步"
    web = random.sample(weblist, 1)
    print u"现在验证删除网站白名单的%s,是否生效" % web
    return network_control.redirect(self, web)
Beispiel #2
0
def default_weblist(self):
    weblist_control.tabmenu_weblist(self)
    while 1:
        weblist_control.remove_button(self, 1)
        tmp = weblist_control.get_weblist(self)
        if tmp == [""]:
            break
    weblist_control.set_web(self, 1, "img.100msh.net")
    weblist_control.add_button(self)
    weblist_control.set_web(self, 2, "wifiauth.100msh.com")
    weblist_control.add_button(self)
    weblist_control.set_web(self, 3, "m.100msh.com")
    general_control.apply(self)
    time.sleep(40)