def setUp(self): print('test start') self.driver = Service.get_driver('../config/base.conf') Service.miss_login(self.driver, '../config/base.conf') self.driver.find_element_by_link_text(u'资源管理').click() self.train = ResourceTrain(self.driver)
def setUpClass(cls): cls.driver = Service.get_driver('../config/base.conf') cls.student_info = StudentInfo(cls.driver)
def setUp(self): self.driver = Service.get_driver('../config/base.conf') Service.open_page(self.driver, '../config/base.conf') self.login = Login(self.driver)
def setUpClass(cls): cls.driver = Service.get_driver('../config/base.conf') cls.phase_exam = PhaseExam(cls.driver)