Jump to content
UBot Underground

Selective choose by attribute


Recommended Posts

Hey guys,just ran into a problem that i thought would be very common but surprisingly the search did not bring up any discussion. I am trying to create a bot for signing up in a particular type of forum. The problem is some of these sites have captcha and some dont, so I need to create a conditional to first check whether a captcha is required or not. So the flow would be like this:

-----------

search page for *code* and *captcha*

if they exist

 

choose the captcha by attribute

decode the captcha

etc

 

else

break

----------

problem is, I am not able to create an if loop where it checks whether a certain word (like captcha or code) exists in a page or not...can some1 help me. Thanks in advance

Link to post
Share on other sites

if search page *captcha*

then

choose the captcha by attribute

decode the captcha

else

if search page *code*

then

choose the captcha by attribute

decode the captcha

 

Is this what you're trying to say? :) Or why do you need a loop?

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...