A little issue when challenge can be solved by a simple click
FlabbySheep opened this issue · 1 comments
FlabbySheep commented
Describe the bug
Hi, firstly thank you for your great project. I've found a little issue when challenge can be solved by a simple click.
To Reproduce
Steps to reproduce the behaviour:
- Go to solver.py
- find line 72 "checkbox.get_attribute('checked')"
- When the challenge is solved without any image recognition or audio recognition, the aria-checked attribute of checkbox should be 'true', or it will return 'false'.
Desktop (please complete the following information):
- OS: Windows
- Chrome
- Version 111
- driver: undetected_chromedriver
My solution
use
if checkbox.get_attribute('aria-checked') == 'true': return
instead of
if checkbox.get_attribute('checked'): return
thicccat688 commented
Hi,
Thanks for your feedback on the project.
I've incorporated your changes, and I'll mention you in the new release so you get credit for spotting this.
Have a nice day :)