阳洁
2023-07-28 8c9395d6a0e07ea64a7ed88a466c5befb83178e3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
from base.base_page import BasePage
from elements.group_report_elements import GroupReportElements
from selenium.common.exceptions import TimeoutException
 
 
class GroupReportPage(BasePage):
    """
    组别报告页面
    """
    # 页面元素
    es = GroupReportElements
 
    def __init__(self, driver):
        super().__init__(driver)
        try:
            self.driver.switch_to.default_content()
            self.switch_iframe(self.es.this_iframe)
        except:
            pass