def simulate_web(): display = Display(visible=0, size=(800, 600)) display.start() driver = webdriver.Chrome(cons.CHROME_PATH) return driver