Jump to content
UBot Underground

Another Way To Approach This? (Element Is On Page, But Ubot Claims It Isn't).


Recommended Posts

So I am trying to get UBot to solve a captcha for me after X amount of rounds completed, but when the captcha appears, it ignores it and keeps running the bot. 
 
I thought maybe my code was going to fast that the pop up was not being detected, so I added a wait for 3 seconds before and after just to ensure. 
 
When I first started creating the bot, it worked just fine, but I don't know what I changed to cause it to not work.
 
I have tried different things for $comparison such as 
else if($exists(<id="show-captcha-popup">)) {
    alert("Going to solve the captcha!")
    click(<id="adcopy-puzzle-image">,"Left Click","No")
    wait(5)
    type text(<name="adcopy_response">,$solve captcha(<id="adcopy-puzzle-image">),"Standard")
    click(<value="Submit">,"Left Click","No")
}
 
and
else if($exists(<id="show-captcha-popup">)) {
    alert("Going to solve the captcha!")
    click(<id="adcopy-puzzle-image">,"Left Click","No")
    wait(5)
    type text(<name="adcopy_response">,$solve captcha(<id="adcopy-puzzle-image">),"Standard")
    click(<value="Submit">,"Left Click","No")
}
and this
 
else if($exists(<id="show-captcha-popup">)) {
    alert("Going to solve the captcha!")
    click(<id="adcopy-puzzle-image">,"Left Click","No")
    wait(5)
    type text(<name="adcopy_response">,$solve captcha(<id="adcopy-puzzle-image">),"Standard")
    click(<value="Submit">,"Left Click","No")
}

The item given definately exists, because I have ran the bot manually, and when the pop up appears, I check the code and it is the same each time, but uBot runs the comparison and claims it is not on the webpage, although its right in front of me...

 

 

 

I even added the alert("Going to solve the captcha!") to ensure the captcha was not failing or something.

 

 

 

EDIT:

 

When I use $document text it finds it immediately of course, but when it appears on the webpage it can't detect it.

Edited by Ingram Assets
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...