Younger brother writing program is based on python3.8, using selenium to write a simple script, and chrome driver has adopted the headless mode, the following code option. Add_argument (' headless ') # does not display the browser window
Option. Add_argument (' - disable - gpu)
And under the environment of pycharm operation can realize the pop-up chromedriver control window, whole journey is without control window;
But use pyinstaller - F - w package program, run the exe file, no popup window control when starting, but when running to
Such control window, will try the Internet said. Py files instead. Pyw also not line, the value of the console has also been a false, how to hide the chromedriver pop-up window?