Commands:Decode chosen captcha

After choosing a captcha image by attribute, using the “decode chosen captcha” command will bring the captcha image into a separate dialog box and the script will wait for a user to enter a value (the captcha) and press OK. (Saying “Yes” to the parameter “Use brute force” will allow the captcha window that appears to always appear in the same location).



The user entered value is sent into a constant that can be called using the variable $captcha. In the below script, the captcha is selected using choose by attribute, it is brought into focus by the decode chosen captcha command, and then the appropriate field is filled with whatever value the user enters into the captcha window. These four commands are all it takes to deal with nearly all captchas: