Answer the question
In order to leave comments, you need to log in
Close multiple selenium sessions at user's request?
I'm running multiple drivers at the same time using multiprocessing, and the problem is with the feature that allows you to close all or several specific sessions at any time at the request of the user.
my code schematically looks like this:
def drop():
...
driver = webdriver.Chrome(executable_path=os.path.join(path, '\\chromedriver.exe'),chrome_options=options)
...
for i in range(10):
s=Process(target = drop)
s.start()
input('press enter to stop all sessions')
###close event
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question