Skip to content

Conversation

BelKed
Copy link
Contributor

@BelKed BelKed commented Mar 25, 2023

This PR adds an error case to handle the situation where the login page requires a CAPTCHA. If this occurs, the errors.LoginFailedException is raised with an appropriate message (CAPTCHA is required to login to the site.).


When a login needs CAPTCHA, there is a present div element with class g-recaptcha. So by simply checking for the presence of the mentioned element, we could distinguish between wrong login credentials and problems with CAPTCHA.


Related issue:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants