def setUp(self):
     self.driver = AutomateDriver()
     self.base_url = self.driver.base_url
     self.base_page = BasePage(self.driver, self.base_url)
     self.dev_manage_page = DevManagePages(self.driver, self.base_url)
     self.driver.set_window_max()
     self.log_in_base = LogInBase(self.driver, self.base_url)
     self.dev_manage_page_read_csv = DevManagePageReadCsv()
     self.driver.wait(1)
     self.driver.clear_cookies()
     self.driver.wait(1)
Beispiel #2
0
 def setUp(self):
     self.driver = AutomateDriver()
     self.base_url = self.driver.base_url
     self.base_page = BasePage(self.driver, self.base_url)
     self.dev_manage_page = DevManagePages(self.driver, self.base_url)
     self.account_center_page_navi_bar = AccountCenterNaviBarPages(
         self.driver, self.base_url)
     self.log_in_base = LogInBase(self.driver, self.base_url)
     self.dev_manage_page_read_csv = DevManagePageReadCsv()
     self.connect_sql = ConnectSql()
     self.search_sql = SearchSql()
     self.driver.set_window_max()
     self.driver.wait(1)
     self.driver.clear_cookies()
     self.driver.wait(1)
Beispiel #3
0
    def setUp(self):
        self.driver = AutomateDriver()
        self.base_url = self.driver.base_url
        self.base_page = BasePage(self.driver, self.base_url)
        self.dev_manage_page = DevManagePages(self.driver, self.base_url)
        self.driver.set_window_max()
        self.log_in_base = LogInBase(self.driver, self.base_url)
        self.dev_manage_page_read_csv = DevManagePageReadCsv()
        self.assert_text = AssertText()
        self.driver.wait(1)
        self.driver.clear_cookies()
        self.driver.wait(1)
        # 打开途强在线首页-登录页
        self.base_page.open_page()

        # 登录
        self.log_in_base.log_in()