MCPcopy Create free account
hub / github.com/seleniumbase/SeleniumBase / force_kill_instances

Method force_kill_instances

seleniumbase/undetected/patcher.py:182–191  ·  view source on GitHub ↗

Terminate instances of UC. :param: Executable name to kill. (Can be a path) :return: True on success else False.

(exe_name)

Source from the content-addressed store, hash-verified

180
181 @staticmethod
182 def force_kill_instances(exe_name):
183 """Terminate instances of UC.
184 :param: Executable name to kill. (Can be a path)
185 :return: True on success else False."""
186 exe_name = os.path.basename(exe_name)
187 if IS_POSIX:
188 r = os.system("kill -f -9 $(pidof %s)" % exe_name)
189 else:
190 r = os.system("taskkill /f /im %s" % exe_name)
191 return not r
192
193 @staticmethod
194 def gen_random_cdc():

Callers 1

autoMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected