def set_up_class(): # prepare something ahead of all ui_tests config.browser_name = BrowserName.CHROME config.base_url = "https://mail.google.com/mail" config.timeout = 7 yield browser.close()
def set_up_class(): driver = webdriver.Remote( command_executor='http://127.0.0.1:4444/wd/hub', desired_capabilities={'browserName': 'chrome', 'version': '60.0', 'javascriptEnabled': True, "enableVNC": True, "screenResolution": "1960x1280x24", "platform": os.name.encode('utf-8')}) browser.set_driver(driver) # prepare something ahead of all ui_tests config.base_url = "https://mail.google.com/mail" config.timeout = 7 yield browser.close()
def tearDown(self): browser.close()
def tearDownClass(cls): cls.browser = browser browser.close()
def teardown_module(): browser.close()
def teardown_class(cls): browser.close()