Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an error case for CAPTCHA problems #208

Merged
merged 1 commit into from
Mar 27, 2023
Merged

Add an error case for CAPTCHA problems #208

merged 1 commit into from
Mar 27, 2023

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.

None yet

3 participants