def test_wp_text_select(self): # 文本选取 logging.info('==========test_wp_text_select==========') ov = OpenView(self.driver) ov.open_file('欢迎使用永中Office.docx') wp = WPView(self.driver) wp.switch_write_read() x, y = wp.get_size() wp.drag_coordinate(x * 0.5, y * 0.4, x * 0.6, y * 0.5) time.sleep(3)
def test_wp_text_select(self): # 文本选取 logging.info('==========test_wp_text_select==========') gv = GeneralView(self.driver) gv.jump_to_index('alldoc') gv.select_file_type('wp') gv.sort_files('size', 'down') eles = self.driver.find_elements(By.ID, 'com.yozo.office.en:id/file_item') eles[0].click() wp = WPView(self.driver) wp.switch_write_read() x, y = wp.get_size() wp.drag_coordinate(x * 0.5, y * 0.4, x * 0.6, y * 0.5) time.sleep(3)