Answers for "python selenium hidedevtools"

1

python selenium hidedevtools

# 1. Locate ...Lib\site-packages\selenium\webdriver\common\service.py on Eexternal Libraries
# 2. Scroll to Start() function
# 3. Replace only the try part in:
        from win32process import CREATE_NO_WINDOW
        try:
            cmd = [self.path]
            cmd.extend(self.command_line_args())
            self.process = subprocess.Popen(cmd, env=self.env,
                                            close_fds=platform.system() != 'Windows',
                                            creationflags=CREATE_NO_WINDOW,
                                            stdout=self.log_file,
                                            stderr=self.log_file,
                                            stdin=PIPE)
# (from the first "try" until the first "exept")
# 4. Enjoy!

# credit: @Wahyu Bram
Posted by: Guest on March-31-2021

Python Answers by Framework

Browse Popular Code Answers by Language