from selenium import webdriver def create_chrome_driver(): options = webdriver.ChromeOptions() options.add_argument("--disable-background-timer-throttling") options.add_argument("--disable-backgrounding-occluded-windows") options.add_argument("--disable-renderer-backgrounding") options.add_argument("--disable-features=CalculateNativeWinOcclusion") options.add_argument("--disable-hang-monitor") options.add_argument("--disable-popup-blocking") return webdriver.Chrome(options=options)