Jump to content
UBot Underground

Can Anybody help me with this captcha Retry?


Recommended Posts

Hi all,

 

Im trying to figure out how to respond to a bad captcha inout on this page:

 

http://www.tradedoubler.com/public/aRegisterAffiliate.action?language=de&country=DE

 

Here is my code:

 

type text(<name="code">, $solve captcha(<id="image_code">), "Standard")

wait(1)

if($contains($scrape attribute(<id="CODE_IMG_ID">, "src"), "error.png")) {

then {

loop(3) {

wait for browser event("Everything Loaded", "")

type text(<name="code">, $solve captcha(<id="image_code">), "Standard")

focus(<name="code">)

wait(2)

}

}

}

 

This page changes the image to either error.png or ok.png depending if you typed the right captcha. What I cant understand is why my code goes back to the loop when I type the correct captcha after a mistake? I think I have something out of place with my code that I need help with.

 

Thanks!

Link to post
Share on other sites

Nevermind, I figured it out (Correct me if Im wrong):

 

if($contains($scrape attribute(<id="CODE_IMG_ID">, "src"), "error.png")) {

then {

loop while($contains($scrape attribute(<id="CODE_IMG_ID">, "src"), "error.png")) {

wait for browser event("Everything Loaded", "")

type text(<name="code">, $solve captcha(<id="image_code">), "Standard")

focus(<name="code">)

wait(1)

}

}

}

 

using loop while() seems to have solved the trick

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...