Python3 Selenium ChromeDriver Disable Extensions Logging Only Pyinstaller Windows 10 Python3 Selenium ChromeDriver Disable Extensions Logging Only Pyinstaller Windows 10 selenium selenium

Python3 Selenium ChromeDriver Disable Extensions Logging Only Pyinstaller Windows 10


If you want disable console you should modife source code of webdriver file service.py. Example path to file C:\Python27\Lib\site-packages\selenium\webdriver\common\service.pyChange from line 69 to this.

try:        cmd = [self.path]        cmd.extend(self.command_line_args())        startupinfo = subprocess.STARTUPINFO()        startupinfo.dwFlags |= subprocess.STARTF_USESHOWWINDOW        self.process = subprocess.Popen(cmd, env=self.env, startupinfo=startupinfo,                                        close_fds=platform.system() != 'Windows',                                        stdout=self.log_file, stderr=self.log_file)    except TypeError:        raise

Then, when you built your app and run, Chromedriver console will not show up.