seleniumbase / SeleniumBase

📊 Python's all-in-one framework for web crawling, scraping, testing, and reporting. Supports pytest. UC Mode provides stealth. Includes many tools.
https://seleniumbase.io
MIT License
4.45k stars 908 forks source link

How to bypass captcha input text #2829

Closed adarmawan117 closed 4 weeks ago

adarmawan117 commented 4 weeks ago

I found a website that using https://github.com/igoshev/laravel-captcha library. So we must input text to solve the captcha. This is an example of captcha image image

And this is the HTML element

                <div class="btn-two-cols-wrapper">
                    <!-- <div>
                        <div required="required" data-callback="enableSubmitPassengerData" data-sitekey="6LeCD6woAAAAAHz-bCQAI0Bg2b1SGsb9ZxXRMUA7" class="g-recaptcha"></div>
                    </div>
                    <div class="help-block with-errors text-danger"></div> -->
                    <img src="https://booking.kai.id/captcha/image?_=884327940" alt="https://github.com/igoshev/laravel-captcha" style="cursor:pointer;width:180px;height:50px;" title="Perbarui" onclick="this.setAttribute('src','https://booking.kai.id/captcha/image?_=884327940&amp;_='+Math.random());var captcha=document.getElementById('captcha');if(captcha){captcha.focus()}">
                                            <br>
                        <span class="error">Invalid Captcha</span>
                                        <div class="row">
                        <div class="col-md-4">
                            <input class="form-control" type="text" id="captcha" name="captcha" autocomplete="off" style="margin-top:10px;">
                        </div>
                    </div>
                </div>

Do you have an idea to bypass it.?

mdmintz commented 4 weeks ago

Use UC Mode to bypass CAPTCHAs that only appear if a website thinks you're a bot.

If the CAPTCHA is also thrown for regular human users, then UC Mode won't help. UC Mode makes your browser appear human-controlled so that you can avoid CAPTCHAs on sites that only throw CAPTCHAs when they detect bots.