def Loginin_nomal(driver, username, password): """ 测试平时登录账户(在已有楼盘下账户未登录状态) :param username: 手机号 :param password: 密码必须传入字符串"00000000" :return:None """ try: MyHome.IntoDengLuPage(driver) jieguo = Public_Page.DengLu(driver, username, password) if jieguo == True: print("执行用例..............................登录哈奇账户%s成功" % username) else: print("执行用例..............................登录哈奇账户%s失败" % username) except: pass
def OnceIntoLogin(driver): try: try: driver.wait_activity( ".modules.splash.views.activities.GuideActivity", 30) time.sleep(1) except: time.sleep(5) pass driver.find_element_by_id( "com.pujitech.pujiejia:id/btn_to_login").click() #点击登录按钮 result = Public_Page.DengLu(driver, 13263160105, "00000000") if result == True: print("执行用例..............................登录哈奇账户成功") else: print("执行用例..............................登录哈奇账户失败") except: print("执行用例..............................登录哈奇账户失败") pass