Jump to content
UBot Underground

"You have an error in your code"


Recommended Posts

For some reason my bot has an error in it's code after I loaded it back into UBot.

 

Here's the code...

 

define Create Yahoo {
   reset account("Any")
   clear cookies
   navigate("http://www.yahoo.com/", "Wait")
   click(<innertext="Sign Up">, "Left Click", "No")
   wait for browser event("DOM Ready", "")
   type text(<first name field>, $account data("First Name"), "Standard")
   type text(<name="secondname">, $account data("Last Name"), "Standard")
   change dropdown(<sex dropdown>, "Random")
   change dropdown(<name="mm">, "Random")
   type text(<name="dd">, $account data("Birth Day"), "Standard")
   type text(<name="yyyy">, $account data("Birth Year"), "Standard")
   type text(<name="postalcode">, $account data("Zip Code"), "Standard")
   type text(<name="yahooid">, $account data("Username"), "Standard")
   click(<id="yidHelperBtn">, "Left Click", "No")
   wait(3)
   if($search page("This ID is not available")) {
       then {
           click(<image=___IMAGE___1___IMAGE___>, "Left Click", "No")
       }
       else {
       }
   }
   type text($element offset(<password field>, 0), $account data("Password"), "Standard")
   type text($element offset(<password field>, 1), $account data("Password"), "Standard")
   change dropdown(<name="secquestion">, "Random")
   type text(<name="secquestionanswer">, "{$account data("City")} {$account data("State")}", "Standard")
   change dropdown(<name="secquestion2">, "Random")
   type text(<name="captchaAnswer">, , "Standard")
   type text(<name="secquestionanswer2">, "{$account data("State Abbreviation")}{$account data("County")}", "Standard")
   type text(<name="captchaAnswer">, $solve captcha($element offset(<id="captchaV5ClassicCaptchaImg">, 0)), "Standard")
   click(<name="IAgreeBtn">, "Left Click", "No")
   wait for browser event("DOM Ready", "")
}
Create Yahoo()

 

I don't see anything wrong, but then again I'm just looking at syntax not actual commands or anything.

 

By the way, this was done 100% in node view, but won't bring it back there when I try to switch over.

Link to post
Share on other sites

For some reason my bot has an error in it's code after I loaded it back into UBot.

 

Here's the code...

 

define Create Yahoo {
   reset account("Any")
   clear cookies
   navigate("http://www.yahoo.com/", "Wait")
   click(<innertext="Sign Up">, "Left Click", "No")
   wait for browser event("DOM Ready", "")
   type text(<first name field>, $account data("First Name"), "Standard")
   type text(<name="secondname">, $account data("Last Name"), "Standard")
   change dropdown(<sex dropdown>, "Random")
   change dropdown(<name="mm">, "Random")
   type text(<name="dd">, $account data("Birth Day"), "Standard")
   type text(<name="yyyy">, $account data("Birth Year"), "Standard")
   type text(<name="postalcode">, $account data("Zip Code"), "Standard")
   type text(<name="yahooid">, $account data("Username"), "Standard")
   click(<id="yidHelperBtn">, "Left Click", "No")
   wait(3)
   if($search page("This ID is not available")) {
       then {
           click(<image=___IMAGE___1___IMAGE___>, "Left Click", "No")
       }
       else {
       }
   }
   type text($element offset(<password field>, 0), $account data("Password"), "Standard")
   type text($element offset(<password field>, 1), $account data("Password"), "Standard")
   change dropdown(<name="secquestion">, "Random")
   type text(<name="secquestionanswer">, "{$account data("City")} {$account data("State")}", "Standard")
   change dropdown(<name="secquestion2">, "Random")
   type text(<name="captchaAnswer">, , "Standard")
   type text(<name="secquestionanswer2">, "{$account data("State Abbreviation")}{$account data("County")}", "Standard")
   type text(<name="captchaAnswer">, $solve captcha($element offset(<id="captchaV5ClassicCaptchaImg">, 0)), "Standard")
   click(<name="IAgreeBtn">, "Left Click", "No")
   wait for browser event("DOM Ready", "")
}
Create Yahoo()

 

I don't see anything wrong, but then again I'm just looking at syntax not actual commands or anything.

 

By the way, this was done 100% in node view, but won't bring it back there when I try to switch over.

 

It's possible you saved it while you were editing which can cause parameters to be missing in the saved file.

 

It looks like there's an issue on line 29 where you have

 

type text(<name="captchaAnswer">, , "Standard")

 

Nothing is filled in for the text for captchaAnswer, adding in "answer" after the first comma will get you back into code view.

 

define Create Yahoo {

   reset account("Any")
   clear cookies
   navigate("http://www.yahoo.com/", "Wait")
   click(<innertext="Sign Up">, "Left Click", "No")
   wait for browser event("DOM Ready", "")
   type text(<first name field>, $account data("First Name"), "Standard")
   type text(<name="secondname">, $account data("Last Name"), "Standard")
   change dropdown(<sex dropdown>, "Random")
   change dropdown(<name="mm">, "Random")
   type text(<name="dd">, $account data("Birth Day"), "Standard")
   type text(<name="yyyy">, $account data("Birth Year"), "Standard")
   type text(<name="postalcode">, $account data("Zip Code"), "Standard")
   type text(<name="yahooid">, $account data("Username"), "Standard")
   click(<id="yidHelperBtn">, "Left Click", "No")
   wait(3)
   if($search page("This ID is not available")) {
       then {
           click(<image=___IMAGE___1___IMAGE___>, "Left Click", "No")
       }
       else {
       }
   }
   type text($element offset(<password field>, 0), $account data("Password"), "Standard")
   type text($element offset(<password field>, 1), $account data("Password"), "Standard")
   change dropdown(<name="secquestion">, "Random")
   type text(<name="secquestionanswer">, "{$account data("City")} {$account data("State")}", "Standard")
   change dropdown(<name="secquestion2">, "Random")
   type text(<name="captchaAnswer">, "answer", "Standard")
   type text(<name="secquestionanswer2">, "{$account data("State Abbreviation")}{$account data("County")}", "Standard")
   type text(<name="captchaAnswer">, $solve captcha($element offset(<id="captchaV5ClassicCaptchaImg">, 0)), "Standard")
   click(<name="IAgreeBtn">, "Left Click", "No")
   wait for browser event("DOM Ready", "")
}
Create Yahoo()

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