-Illuminati- 1 Posted November 14, 2015 Report Share Posted November 14, 2015 (edited) I am trying to create a bot for reddit, and it needs to create accounts. When I run the bot, when it is set to click "Sign Up" it doesn't actually click it. I am registering through http://reddit.com/register I've tried click(<create account button>,"Left Click","No") click(<innertext="SIGN UP">,"Left Click","No")I am not sure what else to try. The user agent is set to chrome. I have also tried Firefox, UBot, and IE but none of them change anything at all. Thanks for the help UBot Community. Ive had this type of button issue with many sites having to turn down clients, but instead of quitting, I am looking for help. EDIT: Yes I have also searched around the website and google for a solution and nothing really gets me anywhere. Edited November 14, 2015 by -Illuminati- Quote Link to post Share on other sites
pash 504 Posted November 14, 2015 Report Share Posted November 14, 2015 Try.set "Click Using Location" = "Yes" click(<create account button>,"Left Click","Yes") Quote Link to post Share on other sites
-Illuminati- 1 Posted November 14, 2015 Author Report Share Posted November 14, 2015 (edited) Try.set "Click Using Location" = "Yes" click(<create account button>,"Left Click","Yes") When I do that, and run the command, it quickly does something to the page but doesn't actually create anything. Looks like it shows the homepage zoomed out really quick and thats it. I tried to do a gif recording: http://recordit.co/6rCHJ7Y8Ia But within it you can't see the page quickly do something. The error messages you see in the beginning is because no imported proxy/user agent lists from the add list to list command. (I set the user agent manually for testing). As you can see though, it hits the "Click" command and nothing happens. Edited November 14, 2015 by -Illuminati- Quote Link to post Share on other sites
pash 504 Posted November 14, 2015 Report Share Posted November 14, 2015 When I do that, and run the command, it quickly does something to the page but doesn't actually create anything. Looks like it shows the homepage zoomed out really quick and thats it. I tried to do a gif recording: http://recordit.co/6rCHJ7Y8Ia But within it you can't see the page quickly do something. The error messages you see in the beginning is because no imported proxy/user agent lists from the add list to list command. (I set the user agent manually for testing). As you can see though, it hits the "Click" command and nothing happens.You need to fix the problem1. Find the file is not found or the file path is invalid.2. Since the 1. list can not be read correctly. Quote Link to post Share on other sites
addy196 9 Posted November 14, 2015 Report Share Posted November 14, 2015 allow flash("No") This will help you for sure . Quote Link to post Share on other sites
Pete 121 Posted November 14, 2015 Report Share Posted November 14, 2015 reset account("Any") set user agent("Chrome") navigate("https://www.reddit.com/register","Don\'t Wait") wait for element(<id="user_reg">,30,"Appear") wait for element(<id="rem_reg">,30,"Appear") run javascript("javascript:document.getElementById(\"user_reg\").setAttribute (\'value\', \'{$account data("Username")}\');") run javascript("javascript:document.getElementById(\"passwd_reg\").setAttribute (\'value\', \'{$account data("Password")}\');") run javascript("javascript:document.getElementById(\"passwd2_reg\").setAttribute (\'value\', \'{$account data("Password")}\');") run javascript("javascript:document.getElementById(\"email_reg\").setAttribute (\'value\', \'{$account data("Email")}\');") run javascript("javascript:document.getElementById(\'rem_reg\').click();") run javascript("javascript:document.getElementById('newsletter_subscribe').click();") run javascript("javascript:document.getElementById(\"register-form\").submit();") 1 Quote Link to post Share on other sites
-Illuminati- 1 Posted November 14, 2015 Author Report Share Posted November 14, 2015 You need to fix the problem1. Find the file is not found or the file path is invalid.2. Since the 1. list can not be read correctly.What I was trying to say is they did not correlate to why it couldn't click the button. But thanks for noticing.allow flash("No") This will help you for sure . Thanks, this might help others, but I don't have developer edition unfortunately. Quote Link to post Share on other sites
-Illuminati- 1 Posted November 14, 2015 Author Report Share Posted November 14, 2015 reset account("Any") set user agent("Chrome") navigate("https://www.reddit.com/register","Don\'t Wait") wait for element(<id="user_reg">,30,"Appear") wait for element(<id="rem_reg">,30,"Appear") run javascript("javascript:document.getElementById(\"user_reg\").setAttribute (\'value\', \'{$account data("Username")}\');") run javascript("javascript:document.getElementById(\"passwd_reg\").setAttribute (\'value\', \'{$account data("Password")}\');") run javascript("javascript:document.getElementById(\"passwd2_reg\").setAttribute (\'value\', \'{$account data("Password")}\');") run javascript("javascript:document.getElementById(\"email_reg\").setAttribute (\'value\', \'{$account data("Email")}\');") run javascript("javascript:document.getElementById(\'rem_reg\').click();") run javascript("javascript:document.getElementById('newsletter_subscribe').click();") run javascript("javascript:document.getElementById(\"register-form\").submit();") Hey man thanks a lot for this. I didn't exactly need the other JS's, but the JS for submit definately did the trick. You're a life saver! Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.