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")
|
browser.get("https://filegarden.com")
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
browser = initialize_webdriver()
|
with initialize_webdriver() as browser:
|
||||||
navigate_to_filegarden(browser)
|
navigate_to_filegarden(browser)
|
||||||
# Go To Your Garden
|
# Go To Your Garden
|
||||||
# Log in (email)
|
# Log in (email)
|
||||||
# Go To Your Garden
|
# Go To Your Garden
|
||||||
|
|
Loading…
Reference in New Issue