Use `with` syntax to clean up browser

This commit is contained in:
The Magician 2023-10-19 21:47:53 +01:00
parent 4ff0f60ca4
commit d401dccf02
1 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@ def navigate_to_filegarden(browser):
browser.get("https://filegarden.com")
def main():
browser = initialize_webdriver()
with initialize_webdriver() as browser:
navigate_to_filegarden(browser)
# Go To Your Garden
# Log in (email)