mirror of
https://github.com/Second-Hand-Friends/kleinanzeigen-bot.git
synced 2026-03-12 10:31:50 +01:00
Handle device verification message. Fixes #104
This commit is contained in:
@@ -360,7 +360,15 @@ class KleinanzeigenBot(SeleniumMixin):
|
||||
self.handle_captcha_if_present("login-recaptcha", "but DON'T click 'Einloggen'.")
|
||||
|
||||
self.web_click(By.ID, "login-submit")
|
||||
pause(800, 3000)
|
||||
|
||||
try:
|
||||
self.web_find(By.ID, "new-device-login", 4)
|
||||
LOG.warning("############################################")
|
||||
LOG.warning("# Device verification message detected. Use the 'Login bestätigen' URL from the mentioned e-mail into the same browser tab.")
|
||||
LOG.warning("############################################")
|
||||
input("Press ENTER when done...")
|
||||
except NoSuchElementException:
|
||||
pass
|
||||
|
||||
def handle_captcha_if_present(self, captcha_element_id:str, msg:str) -> None:
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user