Answer the question
In order to leave comments, you need to log in
Webdriver Chrome does not close the browser. What is the reason?
I am writing a bot for instagram and the browser window stopped closing on command in one particular place in the code. This happened after a few changes, before everything worked. At what exact moment this happened, I did not trace.
Since the code is scattered over the methods, I don’t know how to correctly transfer it here, here is a link to the repository .
And here is the section of code to which the window is not closed (main.py file):
class StartBot(FunctionClass):
def start(self):
try:
self.parameter_input()
self.browser_parameter()
eval(f'self.start_{self.working_mode}()')
finally:
if self.browser is not None:
self.browser.quit()
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