def test_wp_text_select(self): # 文本选取 logging.info('==========test_wp_fonts==========') ov = OpenView(self.driver) ov.open_file('欢迎使用永中Office.docx') gv = GeneralView(self.driver) wv = WpView(self.driver) gv.switch_write_read() # # connect_device(ov.get_phone_dev()) # touch((542, 629), duration=1) # TouchAction(self.driver).long_press(x=542, y=629).wait(1000).release().perform() wv.l_press(542, 629) touch(wv.T_res_select_5) time.sleep(10)
def test_wp_text_copy_cut_paste(self): self.test_wp_text_select() # ov = OpenView(self.driver) # connect_device(ov.get_phone_dev()) wv = WpView(self.driver) touch(wv.T_res_copy_5) wv.l_press(203, 314) touch(wv.T_res_paste_5) wv.l_press(542, 580) touch(wv.T_res_select_5) touch(wv.T_res_cut_5) wv.l_press(203, 314) touch(wv.T_res_paste_5) time.sleep(10)