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 Loginin_Switch_ID(driver, username, password):
     Public_Page.Switch_Navigation(driver, tab="我家")
     #点击我家
     time.sleep(3)
     try:
         userphone = driver.find_element_by_id(
             'com.pujitech.pujiejia:id/tv_user_center_phone')
         if not userphone.text == str(username):
             Public_Page.Dengchu(driver)
             Loginin.Loginin_nomal(driver, username, password)
     except Exception as e:
         print(e)
         pass
 def IntoMyHome(driver):
     """
     点击我家按钮进入我家页面
     """
     time.sleep(1)
     Public_Page.Switch_Navigation(driver, tab="我家")
Exemple #4
0
 def IntoNeighbor(driver):
     #先点击我家按钮进入首页页面
     Public_Page.Switch_Navigation(driver, tab="友邻")
 def IntoNeighbor(driver):
     # 先点击我家按钮进入首页页面
     time.sleep(2)
     Public_Page.Switch_Navigation(driver, tab="友邻")
     time.sleep(2)
Exemple #6
0
 def IntoShiDiPai(driver):
     # 先点击实地派按钮进入首页页面
     Public_Page.Switch_Navigation(driver, tab="实地派")