def test_wp_bookmark(self):
     logging.info('==========test_wp_bookmark==========')
     ov = OpenView(self.driver)
     ov.open_file('欢迎使用永中Office.docx')
     wp = WPView(self.driver)
     wp.group_button_click('查看')
     wp.add_bookmark('test')
     self.assertTrue(wp.check_add_bookmark(), '书签插入失败!')
     wp.swipeUp()
     wp.swipeUp()
     wp.group_button_click('查看')
     wp.list_bookmark('test')
Exemple #2
0
 def test_wp_bookmark(self):
     logging.info('==========test_wp_bookmark==========')
     ov = OpenView(self.driver)
     ov.open_random_file('doc')
     wp = WPView(self.driver)
     wp.group_button_click(' View ')
     wp.add_bookmark('test')
     self.assertTrue(wp.check_add_bookmark(), '书签 Insert 失败!')
     # 收起键盘
     self.driver.find_element(
         By.ID,
         'com.yozo.office.en:id/yozo_ui_option_expand_button').click()
     self.driver.find_element(
         By.ID,
         'com.yozo.office.en:id/yozo_ui_option_expand_button').click()
     wp.swipeUp()
     wp.swipeUp()
     wp.group_button_click(' View ')
     wp.list_bookmark('test')