示例#1
0
def loginPW(PW):
    conftest.click(ele=get_page('登出'))
    conftest.send_keys(ele=get_loginpage('账号'), content=u'110111105001')
    conftest.send_keys(ele=get_loginpage('密码'), content=PW)
    conftest.click(ele=get_loginpage('登录'))
    time.sleep(3)
    return conftest.getText(ele=get_loginpage('标题'))
示例#2
0
def updateName(content):
    conftest.click(ele=get_page('取消'))
    conftest.click(ele=get_page('用户信息'))
    time.sleep(2)
    conftest.send_keys(ele=get_page('姓名'), content=content)
    conftest.send_keys(ele=get_page('原密码'), content=u'aA123456')
    conftest.click(ele=get_page('提交'))
    conftest.click(ele=get_page('用户信息'))
    time.sleep(2)
    return conftest.getInputText(ele=get_page('姓名'))
示例#3
0
def login():
    conftest.send_keys(ele=get_loginpage('账号'), content=u'110111105001')
    conftest.send_keys(ele=get_loginpage('密码'), content='aA123456')
    conftest.click(ele=get_loginpage('登录'))
示例#4
0
def updateUserID(userID):
    conftest.send_keys(ele=get_page('身份证号码'), content=userID)
    conftest.send_keys(ele=get_page('原密码'), content=u'aA123456')
    conftest.click(ele=get_page('提交'))
示例#5
0
def updateNameNopassword(content):
    conftest.send_keys(ele=get_page('姓名'), content=content)
    conftest.click(ele=get_page('提交'))
    return conftest.getText(ele=get_page('无原密码提示'))
示例#6
0
def updatePW(pw1, pw2):
    conftest.send_keys(ele=get_page('新密码'), content=pw1)
    conftest.send_keys(ele=get_page('确认新密码'), content=pw2)
    conftest.send_keys(ele=get_page('原密码'), content=u'aA123456')
    conftest.click(ele=get_page('提交'))
示例#7
0
def updatePhoneNum(PhoneNum):
    conftest.send_keys(ele=get_page('联系电话'), content=PhoneNum)
    conftest.send_keys(ele=get_page('原密码'), content=u'aA123456')
    conftest.click(ele=get_page('提交'))