#!/usr/bin/env python # -*- coding: utf-8 -*- ''' @File : login_page.py @Time : 2024/11/21 08:56:19 @Author : dulip3ng @Version : 1.0 @Desc : None ''' from common.condition_row import ConditionRow def test_check_line_by_rows(list_page, home_page, filter_page): home_page.search_bill("销售订单列表") list_page.click_button("过滤") cond1 = ConditionRow(1, "单据编号", "XSDD2411020023", logic="或者") cond2 = ConditionRow(2, "单据编号", "XSDD2411020024") filter_page.filter(cond1, cond2) list_page.check_line_by_rows(1) list_page.check_line_by_rows(2,3) def test_get_value(list_page): value = list_page.get_value("衬衣订单号", 1) assert value is not None def test_get_bill_no(list_page): value = list_page.get_bill_no(1) assert value is not None def test_get_row_count(list_page): value = list_page.get_row_count() assert value is not None def test_field_filter(list_page): list_page.field_filter("销售类别", "外销") def test_check_line_by_field_value(list_page): list_page.check_line_by_field_value("销售类别", "外销") def test_open_bill_by_row(list_page): list_page.open_bill_by_row(1) def test_click_button(list_page, head_page, home_page): home_page.change_bill_tab("销售订单列表") list_page.click_button("刷新") list_page.click_button("业务查询", "预收查询")