def setUpClass(cls): cls.driver = webdriver.Firefox() cls.bug = ZenTaoBug(cls.driver) cls.a = Login(cls.driver) cls.a.login()
def setUpClass(cls): cls.driver = webdriver.Firefox() cls.zentaobug = ZenTaoBug(cls.driver) a = LoginPage(cls.driver) a.is_loginfuc()
def setUpClass(cls): cls.driver = webdriver.Chrome() cls.driver.maximize_window() cls.bug = ZenTaoBug(cls.driver) cls.bug.login()
def setUpClass(cls): cls.driver = webdriver.Firefox() #打开浏览器 cls.zentao = ZenTaoBug(cls.driver) cls.l = Login(cls.driver) cls.l.login() #登录