home_page_locator.py 1.3 KB

1234567891011121314151617181920212223
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. '''
  4. @File : home_page_locator.py
  5. @Time : 2024/11/06 21:33:27
  6. @Author : dulip3ng
  7. @Version : 1.0
  8. @Desc : None
  9. '''
  10. class HomePageLocator:
  11. SEARCH_IMG_LOC = "//div[@id = 'FSEARCH']/../img"
  12. SEARCH_LOC = "//div[@id='FSEARCH']//input"
  13. BILL_LIST_ARGS_LOC = "//div[@data-role= 'listview']/li//*[text() = '%s']/ancestor::li/parent::div/li[%d]"
  14. ORGANIZATION_LOC = "//a[substring(@id, string-length(@id)-14)='FBTNORG-FBTNORG']"
  15. ORG_ITEM_ARGS_LOC = "//div[@class='k-animation-container']/ul/li/span/span[contains(text(),'%s')]"
  16. BILL_CLOSE_ARGS_LOC = "//ul[contains(@class, 'kdMainTabsHeaderExtend')]/descendant::span[contains(text(), '%s')]/following-sibling::span"
  17. WARNING_MSG_BTN_ARGS_LOC = "//div[contains(@id,'-POPFLOATEMESSAGE')]/div[contains(@id, 'btn')]/button[text() = '否']"
  18. ALL_OPEN_FORM_BTN_LOC = "//div[@class = 'CloudAllOpenFormBtn']"
  19. CLOSE_ALL_BILLS_ITEM_LOC = "//span[text() = '关闭所有页面']"
  20. IS_BILL_OPENING_ARGS_LOC = "//ul[contains(@class, 'kdMainTabsHeaderExtend')]/descendant::span[contains(text(), '%s')]/following-sibling::span"
  21. BILL_TAB_ARGS_LOC = "//ul[@class = 'k-tabstrip-items k-reset kdMainTabsHeaderExtend']//span[@class = 'k-link' and contains(text(),'%s')]"