Use `with` syntax to clean up browser
This commit is contained in:
parent
4ff0f60ca4
commit
d401dccf02
|
@ -9,8 +9,8 @@ def navigate_to_filegarden(browser):
|
|||
browser.get("https://filegarden.com")
|
||||
|
||||
def main():
|
||||
browser = initialize_webdriver()
|
||||
navigate_to_filegarden(browser)
|
||||
with initialize_webdriver() as browser:
|
||||
navigate_to_filegarden(browser)
|
||||
# Go To Your Garden
|
||||
# Log in (email)
|
||||
# Go To Your Garden
|
||||
|
|
Loading…
Reference in New Issue