def test_preview_picture(chat_more_button, data): # 通过预览区发送图片 try: print(data['name']) value = (data['type'], data['value']) One_use(driver).send_preview_picture(value) except Exception as i: raise ("发送失败请检查下\n", i)
def test_VoiceMessage(): try: print("发送语音中...\n") One_use(driver).send_VoiceMessage() except Exception as i: raise ("发送失败请检查下\n", i)
def test_IdCard(): try: print("发送名片中...\n") One_use(driver).send_IdCard() except Exception as i: raise ("发送名片失败,请检查!", i)
def test_stiker(data): # 发送各个模块的表情包 print("发送{0}中...\n".format(data["sticker_info"])) print("-------发送{0}成功-------\n".format(data["sticker_info"])) ele = (data['sticker_type'], data['sticker']) One_use(driver).send_expression(ele)
def test_message(data, search_all): # 输入框发送消息 # print(c['messages']) print("发送{0}中...\n".format(data['messages_info'])) print("-------发送{0}成功-------\n".format(data['messages_info'])) One_use(driver).send_message(data['messages'])
def test_IdCard(chat_more_button): try: print("发送名片中...\n") One_use(driver).send_IdCard() except Exception as i: raise ("发送失败请检查下\n", i)