I have opened a webbrowser window using webbrowser.open(url) in python now I want to close the webbrowser opened using python. Is it possible to do so?
webbrowser.open(url)
For MacOS, you can use below command:
os.system("killall -9 'Google Chrome'")