def longpress_speak(self,t,*loc): #对讲t秒 action = TouchAction(self.driver) el = self.find_element(*self.btnSpeak_loc) action.long_press(el,duration=t).perform()
def longpress_speak(self,t,*loc): #对讲t秒 action = TouchAction(self.driver) el = self.find_element(*self.btnSpeak_loc) action.long_press(el,duration=t).perform()