阳洁
2023-07-28 8c9395d6a0e07ea64a7ed88a466c5befb83178e3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
from selenium.webdriver.common.by import By
 
 
class ExportTestDataElements:
    # 查看评测报告tab_name
    tab_name_report = "查看评测报告"
 
    # this-iframe
    this_iframe = (By.XPATH, "//iframe[contains(@src,'/exam/report/reportView/evaluationReport')]")
 
    # 产品包select
    product_select = (By.XPATH, "//select[@name='productId']")
    # 产品包option
    product_option = (By.XPATH, "//select[@name='productId']/option")
    # 测试开始时间
    test_begin_time_input = (By.XPATH, "//input[@name='params[beginTime]']")
    # 测试结束时间
    test_end_time_input = (By.XPATH, "//input[@name='params[endTime]']")
    # this-table头复选框
    table_thead_checkbox = (By.XPATH, "//table[@id='bootstrap-table']/thead/tr//input")
    # this-导出测试数据按钮
    export_test_data_btn = (By.XPATH, "//a[@onclick='exportDataReport();']")
    # 搜索按钮
    search_btn = (By.XPATH, "//a[@onclick='$.table.search()']")
    # 导出数据
    export_data_btn = (By.XPATH, "//a[contains(@onclick,'exportDataReport();')]")
 
 
    # 加载框
    layer_reload = (By.XPATH, "//div[@class='loaderbox']/div")