base_page_locator.py 787 B

1234567891011121314151617181920
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. '''
  4. @File : base_page_locator.py
  5. @Time : 2024/11/21 14:57:52
  6. @Author : dulip3ng
  7. @Version : 1.0
  8. @Desc : None
  9. '''
  10. class BasePageLocator:
  11. #登录后页面上方账套名称显示位置
  12. BLANK_LOC = "//a[contains(@id, '-FBTNDATACENTER-FBTNDATACENTER')]"
  13. #错误信息相关定位
  14. ERROR_MESSAGE_LOC = "//*[contains(@id,'-POPFLOATEERRMESSAGE')]/div[1]/span"
  15. ERROR_MSG_BUTTON_LOC = "//*[contains(@id,'-POPFLOATEERRMESSAGE')]/div/button"
  16. ERROR_MESSAGE_DETAIL_LOC = "//span[@class = 'kd-msg-details']"
  17. WARNING_MESSAGE_LOC = "//*[contains(@id,'-POPFLOATEMESSAGE')]/div[1]/span"
  18. WARNING_MSG_BUTTON_ARGS_LOC = "//div[contains(@id,'-POPFLOATEMESSAGE')]/div[contains(@id, 'btn')]/button[text() = '%s']"