python selenium hidedevtools

Solutions on MaxInterview for python selenium hidedevtools by the best coders in the world

showing results for - "python selenium hidedevtools"
Daniela
20 Jan 2018
1# 1. Locate ...Lib\site-packages\selenium\webdriver\common\service.py on Eexternal Libraries
2# 2. Scroll to Start() function
3# 3. Replace only the try part in:
4        from win32process import CREATE_NO_WINDOW
5        try:
6            cmd = [self.path]
7            cmd.extend(self.command_line_args())
8            self.process = subprocess.Popen(cmd, env=self.env,
9                                            close_fds=platform.system() != 'Windows',
10                                            creationflags=CREATE_NO_WINDOW,
11                                            stdout=self.log_file,
12                                            stderr=self.log_file,
13                                            stdin=PIPE)
14# (from the first "try" until the first "exept")
15# 4. Enjoy!
16
17# credit: @Wahyu Bram