Ejemplo n.º 1
0
 def tenant_name(self, tenant_name_value):
     tenant_name_text = self.wait_find_element(*self.tenant_name_element)  # 户型描述输入
     tenant_name_text.click()
     AdbShell.input_text(tenant_name_value)
     # print("入住人姓名:",tenant_name_value)
     # tenant_name_text.send_keys(tenant_name_value)
     logger.info("TenantNameText is setValues!")
Ejemplo n.º 2
0
 def room_type(self, room_type_Value):
     room_type_text = self.wait_find_element(*self.room_type_description_element)  # 户型描述输入
     room_type_text.click()
     AdbShell.input_text(room_type_Value)
     # room_type_text.send_keys(room_type_Value)
     logger.info("RoomTypeText is setValues!")
     self.get_screeShot()
Ejemplo n.º 3
0
 def code_set_text(self, CodeValue):
     code_text = self.wait_find_element(*self.code_text_element)
     # print("MobileText", CodeText.text)
     code_text.click()
     try:
         AdbShell.input_text(CodeValue)
         # MobileText.send_keys(mobileValue)
         logger.info("CodeText is setValues!")
     except:
         logger.info("验证码输入失败!")
Ejemplo n.º 4
0
 def mobile_set_text(self, mobileValue):
     mobile_text = self.wait_find_element(*self.mobile_text_element)
     # print("MobileText", MobileText.text)
     mobile_text.click()
     try:
         AdbShell.input_text(mobileValue)
         # MobileText.send_keys(mobileValue)
         logger.info("MobileText is setValues!")
     except:
         logger.info("手机号输入失败!")
Ejemplo n.º 5
0
 def id_card_text(self, id_card_value):
     id_card_text = self.wait_find_element(*self.id_card_text_element)
     # print("MobileText", CodeText.text)
     id_card_text.click()
     try:
         AdbShell.input_text(id_card_value)
         logger.info("id_card_text is setValues!")
         self.get_screeShot()
     except:
         logger.info("验证码输入失败!")
Ejemplo n.º 6
0
 def room_name(self, room_name_Value):
     room_name_text = self.wait_find_element(*self.room_name_element)
     # print("room_name_text", room_name_text.text)
     room_name_text.click()
     try:
         AdbShell.input_text(room_name_Value)
         # room_type_text.send_keys(room_type_Value)
         logger.info("RoomNameText is setValues!")
         self.get_screeShot()
     except:
         logger.info("房源昵称字段输入内容失败")
Ejemplo n.º 7
0
 def name_text(self, name_value):
     name_text = self.wait_find_element(*self.name_text_element)
     # print("MobileText", MobileText.text)
     name_text.click()
     try:
         AdbShell.input_text(name_value)
         # MobileText.send_keys(mobileValue)
         logger.info("name_text is setValues!")
         self.get_screeShot()
     except:
         logger.info("姓名输入失败!")
Ejemplo n.º 8
0
 def click_img(self,img_name):
     """
     传入图片名,可点击图片。图片路径与名字不能包含中文
     :param img_name:
     :return:
     """
     with allure.step('步骤:点击图片{img_name}'.format(img_name=img_name)):
         img_name = self.image_path + img_name
         sereen_all_filename = str(uuid.uuid1())+'screen_all.png'
         self.driver.get_screenshot_as_file(sereen_all_filename)
         x,y = PictureRecognition.matchImg(img_name, sereen_all_filename)
         AdbShell.tap(x, y)
Ejemplo n.º 9
0
 def tenant_mobile(self, tenant_mobile_value):
     tenant_mobile_text = self.wait_find_element(*self.tenant_mobile_element)  # 户型描述输入
     tenant_mobile_text.click()
     AdbShell.input_text(tenant_mobile_value)
     logger.info("TenantMobileText is setValues!")
Ejemplo n.º 10
0
 def shop_name(self, shop_name_Value):
     shop_name_text = self.wait_find_element(*self.shop_name_element)
     shop_name_text.click()
     AdbShell.input_text(shop_name_Value)
     logger.info("RoomDescriptionText is setValues!")
     self.get_screeShot()
 def authorized_mobile_input_box(self, authorized_mobile_value):
     authorized_mobile_text = self.wait_find_element(*self.authorized_mobile_element)
     authorized_mobile_text.click()
     AdbShell.input_text(authorized_mobile_value)
     logger.info("authorized_mobile is SetValue")
 def address_input_box(self,address_value):
     address = self.wait_find_element(*self.address_element)
     address.click()
     AdbShell.input_text(address_value)
     logger.info("Address is SetValue")
 def id_number_input_box(self,id_number_value):
     id_number = self.wait_find_element(*self.id_number_element)
     id_number.click()
     AdbShell.input_text(id_number_value)
     logger.info("IdNumber is SetValue")