def FYMtest(driver): Public_Page.Switch_Navigation(driver, tab= "实地派") time.sleep(1) #Public_Page.RandomBuilding(driver) Public_Page.ChoiceBuilding(driver, Building = "常春藤") time.sleep(2) Loginin.Loginin_nomal(driver) time.sleep(2) allapp = driver.find_elements_by_id("com.pujitech.pujiejia:id/tv_app_name") for i in allapp: if i.text == "房间绑定": fangjianbangding = i break Public_Page.NomalTest(driver, title="房间绑定", MainWait_Element=".modules.main.views.activities.MainActivity", find_element_id= fangjianbangding, Wait_Element=".modules.roombind.views.activitys.RoomBindActivity", check_element_id="com.pujitech.pujiejia:id/tv_title" ) Public_Page.Dengchu(driver)
def OnceChoiceBuilding(driver, Building): """ 第一次选择楼盘 :param Building: 传入楼盘名称 :return: None """ try: Public_Page.ChoiceBuilding(driver, Building) print("执行用例..............................选择楼盘%s成功" % Building) except: print("执行用例..............................选择楼盘%s失败" % Building) pass
def QieHuanLouPan(driver, Building, into): Public_Page.ChoiceBuilding(driver, Building, into)