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")
|