I have created a headless webdriver chrome browser by setting this argument:
chrome_options.add_argument("--headless")
and then opening the browser using:
driver = webdriver.Chrome(executable_path=os.path.abspath("chromedriver"), chrome_options=chrome_options)
Is it possible to make the browser appear once a condition is met? I have tried removing the attribute again using:
chrome_options.arguments.remove("--headless")
but that does not do anything.