Reject Captcha

From UBot Studio
Jump to: navigation, search

This command navigates the browser to a specified url.

Reject Captcha is a Browser Command.

The command can be used in the If, Then, Else command to reject captchas that were incorrectly solved by a captcha service.


Example


navigate("http://www.ubotstudio.com/playground/captcha-form", "Wait")
wait(3)
type text(<name="ctl00$ContentPlaceHolder1$captcha">, $solve captcha(<src="/assets/captcha.jpg?id=0.7055475">), "Standard")
click(<name="ctl00$ContentPlaceHolder1$Button1">, "Left Click", "No")
wait(3)
if($exists(<id="result">)) {
    then {
        click(<title="Home">, "Left Click", "No")
    }
    else {
        reject captcha
    }
}


The script check the page to make sure the captcha typed into the filed was accepted by the webpage.

The Else command will run only if the word "Correct" is not detected on the page, which indicates that the captcha was correct.


Rejectcaptcha.jpg

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox