Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
selenium prints weird things...
#2
The best way is to take it source code,as other ways have changed or not working anymore.
root python\Lib\site-packages\selenium\webdriver\common\service.py
In service.py add creationflags=CREATE_NO_WINDOW parameter.
def start(self):
	"""
	Starts the Service.

	:Exceptions:
	 - WebDriverException : Raised either when it can't start the service
	   or when it can't connect to the service
	"""
	try:
		cmd = [self.path]
		cmd.extend(self.command_line_args())
		self.process = subprocess.Popen(cmd, env=self.env,
										close_fds=platform.system() != 'Windows',
										stdout=self.log_file,
										stderr=self.log_file,
										stdin=PIPE,
										creationflags=CREATE_NO_WINDOW)
	except TypeError:
		raise
Reply


Messages In This Thread
selenium prints weird things... - by julio2000 - Feb-23-2020, 07:48 PM
RE: selenium prints weird things... - by snippsat - Feb-23-2020, 08:35 PM
RE: selenium prints weird things... - by julio2000 - Feb-29-2020, 04:26 PM
RE: selenium prints weird things... - by snippsat - Feb-29-2020, 04:48 PM
RE: selenium prints weird things... - by drain3r - May-24-2021, 11:04 PM
RE: selenium prints weird things... - by julio2000 - Feb-29-2020, 09:42 PM
RE: selenium prints weird things... - by snippsat - Feb-29-2020, 10:42 PM
RE: selenium prints weird things... - by julio2000 - Mar-01-2020, 09:08 PM
RE: selenium prints weird things... - by snippsat - Mar-01-2020, 09:47 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  selenium prints weird things... julio2000 0 1,636 Apr-13-2020, 06:16 PM
Last Post: julio2000
  Selenium weird error julio2000 0 1,742 Feb-23-2020, 01:24 PM
Last Post: julio2000
  Error in Selenium: CRITICAL:root:Selenium module is not installed...Exiting program. AcszE 1 3,737 Nov-03-2017, 08:41 PM
Last Post: metulburr

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020