'How not to show the chromewebdriver.exe window?

I have gui app for parsing. After start parsing, always show chromedriver.exe window. How i can hide this window-console?

My driver:

options = selenium.webdriver.ChromeOptions()
options.add_argument('headless')
options.add_argument('--headless')
options.add_argument('--disable-extensions')
options.add_argument('--disable-blink-features=AutomationControlled')
options.add_argument('--no-sandbox')
options.add_argument('--disable-gpu')
options.add_experimental_option('excludeSwitches', ['enable-logging'])

service = Service(webdriver_manager.chrome.ChromeDriverManager(log_level=logging.CRITICAL).install())
        driver = selenium.webdriver.Chrome(
            service=service,
            options=options
        )
driver.execute_cdp_cmd('Network.setUserAgentOverride', {"userAgent": UserAgent().chrome})
driver.implicitly_wait(10)
driver.get("my_url")

enter image description here



Solution 1:[1]

from subprocess import CREATE_NO_WINDOW

service = Service(webdriver_manager.chrome.ChromeDriverManager(log_level=logging.CRITICAL).install())
service.creationflags = CREATE_NO_WINDOW

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Sergey Derevianko