push_page_locator.py 1.6 KB

123456789101112131415161718
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. '''
  4. @File : push_page_locator.py
  5. @Time : 2024/11/28 16:21:19
  6. @Author : dulip3ng
  7. @Version : 1.0
  8. @Desc : None
  9. '''
  10. class PushPageLocator:
  11. BILL_ARGSLOC = "//div[@dfrom='childFormCt']/div/div[contains(@style,'display:inline-block')]/div/div[substring(@data-kdid,string-length(@data-kdid)-16)='BILLCONTROLS_fill']/descendant::label[text()='%s']/parent::div/label";
  12. CONVERT_RULE_LOC = "//body/div[@class = 'k-widget k-window']//div[contains(@data-kdid, '-BILLCONTROLS_bottom')]//table[contains(@id, '-FTABLELAYOUT_table')]//span[@title = '转换规则' and not(contains(@style, 'overflow: hidden'))]/../following-sibling::div[1]";
  13. BILL_TYPE_LOC = "//body/div[@class = 'k-widget k-window']//div[contains(@data-kdid, '-BILLCONTROLS_bottom')]//table[contains(@id, '-FTABLELAYOUT_table')]//span[@title = '单据类型' and not(contains(@style, 'overflow: hidden'))]/../following-sibling::div[1]";
  14. TARGET_ORG_LOC = "//body/div[@class = 'k-widget k-window']//div[contains(@data-kdid, '-BILLCONTROLS_bottom')]//table[contains(@id, '-FTABLELAYOUT_table')]//span[@title = '目标组织' and not(contains(@style, 'overflow: hidden'))]/../following-sibling::div[1]";
  15. OK_BUTTON_LOC = "//div[@dfrom='childFormCt']/div/div[contains(@style,'display:inline-block')]/div/div[substring(@data-kdid,string-length(@data-kdid)-18)='BILLCONTROLS_bottom']/descendant::a[text()='确定']";
  16. SELECT_ITEM_ARGS_LOC = "//div[@class = 'k-animation-container' and contains(@style, 'display: block')]/div/div[2]/ul/li/span[text() = '%s']";