def setUpClass(self): self.driver = webdriver.Chrome() self.driver.implicitly_wait(30) self.driver.maximize() enterCompPage = EnterCompPage(self.driver) enterCompPage.enter_comp(CompInfo.ENTER_COMP_INFO)
def setUp(self): self.driver = webdriver.Chrome() # self.driver = webdriver.PhantomJS() self.driver.implicitly_wait(30) self.driver.maximize_window() enterCompPage = EnterCompPage(self.driver) enterCompPage.enter_comp(CompInfo.ENTER_COMP_INFO)
def setUpClass( self ): self.driver = webdriver.Chrome() global publicPage publicPage = PublicPage(self.driver) publicPage.max_window() self.driver.implicitly_wait(30) enterCompPage = EnterCompPage(self.driver) enterCompPage.enter_comp(CompInfo.ENTER_COMP_INFO)
def setUpClass(self): # self.driver = webdriver.PhantomJS() self.driver = webdriver.Chrome() self.driver.implicitly_wait(30) self.driver.set_window_size(1280, 800) # enterCompPage = EnterCompany(self.driver) # enterCompPage.goToCompany() enterCompPage = EnterCompPage(self.driver) enterCompPage.enter_comp(CompInfo.ENTER_COMP_INFO)
def setUpClass(self): # 登录->进入账套 self.driver = webdriver.Chrome() # self.driver = webdriver.PhantomJS() self.driver.implicitly_wait(30) if BaseClass.get_system_name() == 'Windows': self.driver.maximize_window() enterCompPage = EnterCompPage(self.driver) enterCompPage.enter_comp(CompInfo.ENTER_COMP_INFO)
@classmethod def setUpClass( self ): # def setUp(self): # self.driver = webdriver.PhantomJS() self.driver = webdriver.Chrome() PublicPage(self.driver).max_window() self.driver.implicitly_wait(30) <<<<<<< HEAD # 屏幕最大化 BaseClass(self.driver).max_window() ======= >>>>>>> f0d2c843669e5d27aaaabf803bdbe17b8112a2b2 enterCompPage = EnterCompPage(self.driver) enterCompPage.enter_comp(CompInfo.ENTER_COMP_INFO) @classmethod def tearDownClass( self ): # def tearDown(self): self.driver.quit() # 纪录完所有数据,收票列表本月收票总额为263,097.00 def test_record_input_invoice( self ): """cai-记多条收票 测试""" readExcel = ReadExcel(self.record_invoice_data_dir) excel_data = readExcel.get_value_in_order('记所有类别的收票yb') dangerPage = DangerPage(self.driver) alertPage = AlertPage(self.driver)
def test_enter_comp(self): page = EnterCompPage(self.driver) page.enter_comp(CompInfo.ENTER_COMP_INFO)