You know how in Python, you can open files using a with open() clause, is it possible to open selenium drivers using that clause so that it automatically closes the driver when you're done? Remembering to close the drivers that I open is something that I often forget and I'm just wondering if there's a better way.
This is what I mean by with open clause.
with open([INSERT FILE NAME HERE], [INSERT ACCESS MODE HERE]) as fileName: [INSERT CODE]