Dismiss LCL welcome screen

This commit is contained in:
Gabriel Augendre 2023-06-14 08:02:30 +02:00
parent 2e0d5dc419
commit 01b486031b

View file

@ -53,6 +53,12 @@ class LclDownloader:
self._click(By.CLASS_NAME, "app-cta-button")
click.secho("Logged in!", fg="green")
try:
self._click(By.CSS_SELECTOR, ".app-cta-button--primary")
click.secho("Dismissing welcome screen...", fg="blue")
except NoSuchElementException:
click.secho("No welcome screen found.", fg="blue")
try:
self._click(By.CSS_SELECTOR, ".burger-menu-content")
self._click(By.CSS_SELECTOR, ".return-legacy-button")