I am attempting to automate a website process with Selenium in Python. I am using ChromeDriverManager to install the correct version of Chrome driver upon the execution of my program. I have a GUI program that calls my Selenium program via command-line arguments. My goal is to execute this program without any extra pop-ups from chromedriver.exe. I have the following code:
op = webdriver.ChromeOptions()
op.ignore_zoom_level = True
op.add_argument('headless')
op.add_argument('disable-gpu')
op.add_argument('disable-infobars')
op.add_experimental_option('excludeSwitches', ['enable-logging'])
driver = webdriver.Chrome(ChromeDriverManager().install(), options=op, service_args=['CREATE_NO_WINDOW'])
When I run this code via script I see no windows from chromedriver.exe, however, when I export to EXE package via pyinstaller a chromedriver.exe window pops up: Terminal IMG
How do I disable this terminal window from chromedriver.exe from popping up?
To clarify this is not an issue with the main program appearing in the terminal. It is an issue when the main program executes chromedriver.exe.