def browser(request): """Starts and stops the server for each app in APPS""" _browser = config.get_browser() _browser.implicitly_wait(3) request.addfinalizer(lambda: _browser.quit()) return _browser
def browser(request): """Starts and stops the server for each app in APPS""" _browser = config.get_browser() _browser.set_window_size(800, 600) _browser.set_window_position(1024 - 800 - 10, 40) # _browser.implicitly_wait(4) request.addfinalizer(lambda: _browser.quit()) return _browser