Ettienne 2 Posted August 7, 2016 Report Share Posted August 7, 2016 Hello, I purchased Ubot on Friday and have been able to do some pretty neat things so far, however, I've come across 2 issues so far: 1. Account CreationOkay, it's pretty simple so far, BUT... I've come across Name/Password (etc.) fields that are "randomly generated" by the site, obviously to block bots from creating accounts. Ie: Let's say I want to click the name field to enter the name. When I drag the "click text" or "click" commands into Ubot, each time the "create an account" page loads these values change inside the box, so the bot can't find the box and skips it. Dragging the element will say the value is, say "z=1424696", the next time the bot loops that same box will have a different value, like "z=87965932". How do I get past that? 2. Popup - Checkbox.I'm using a website to do work for clients, each client has an Account on this site. Now, when I click the "select account" button, a popup comes up listing all the client accounts with a checkbox to the left of them. How do I find an exact match text and tell it to click that specific client's box?For Example (the zero is my box):0 Client 10 Client 20 Client 3 I can tell it to find the text, but how to instruct it to click the box next to it? Okay that's it for now, and thank you in advance, any help would be greatly appreciated! Quote Link to post Share on other sites
pash 504 Posted August 7, 2016 Report Share Posted August 7, 2016 Please post your code. Quote Link to post Share on other sites
Ettienne 2 Posted August 7, 2016 Author Report Share Posted August 7, 2016 1. Account Problem: click($element offset(<create account link>,2),"Left Click","No")wait for browser event("Everything Loaded","")reset account("Any")type text(<name="z814136229">,$account data("Last Name"),"Standard")change dropdown(<name="ListRegistrationData:0:ItemRegistrationData:BorderBoxRegistrationData:PanelRegistrationData:RowBirthDate:Field:month">,"Random")change dropdown(<name="ListRegistrationData:0:ItemRegistrationData:BorderBoxRegistrationData:PanelRegistrationData:RowBirthDate:Field:day">,"Random")change dropdown(<name="ListRegistrationData:0:ItemRegistrationData:BorderBoxRegistrationData:PanelRegistrationData:RowBirthDate:Field:year">,"Random")change dropdown(<country dropdown>,"Random")type text(<name="z1204626835">,$account data("Username"),"Standard") See, those <name="z"> values change every time the page is loaded, so that's my headache there. 2. Popup Problem: There is no code for my 2nd problem as I can't get it working. but this is up to where I get stuck. click(<id="add-accounts">,"Left Click","No")wait for element(<id="accounts-popup">,"","Appear")click(<value="categories">,"Left Click","No")change dropdown(<id="no_of_account_records">,"All")wait for browser event("Everything Loaded","") Did have a "$Search Page" qualifier next, but then after finding the text I don't know how to click the box in that specific line Quote Link to post Share on other sites
pash 504 Posted August 7, 2016 Report Share Posted August 7, 2016 what is website url? Quote Link to post Share on other sites
Ettienne 2 Posted August 8, 2016 Author Report Share Posted August 8, 2016 I'm just messing around for now trying to create gmx.com email accounts, that's where I'm facing the random field problem with those "z" values. I found a workaround for the popup issue using alerts/pause scripts so that's not too much of an issue right now Quote Link to post Share on other sites
pash 504 Posted August 8, 2016 Report Share Posted August 8, 2016 I can not test allBecause my country is blocked. navigate("https://gmx.com","Wait") click($element offset(<create account link>,2),"Left Click","No") wait for browser event("Everything Loaded","") reset account("Any") type text(<id="ida">,$account data("First Name"),"Standard") type text(<id="idc">,$account data("Last Name"),"Standard") change dropdown(<class="Text ColouredFocus MonthPos">,"Random") change dropdown(<class="Text ColouredFocus DayPos">,"Random") change dropdown(<class="Text ColouredFocus YearPos">,"Random") change dropdown(<country dropdown>,"Random") type text(<id="id1d">,$account data("Username"),"Standard")for popuphttp://wiki.ubotstudio.com/wiki/Allow_Popupshttp://wiki.ubotstudio.com/wiki/In_Popup 1 Quote Link to post Share on other sites
Ettienne 2 Posted August 8, 2016 Author Report Share Posted August 8, 2016 Thank you, but it's still only changing the dropdown menus, the name/last name fields are left blank. In that code you senttype text(<id="ida">,$account data("First Name"),"Standard")type text(<id="idc">,$account data("Last Name"),"Standard") What does the "ida" and "idc" represent? Or when would I use that in general? Quote Link to post Share on other sites
Ettienne 2 Posted August 8, 2016 Author Report Share Posted August 8, 2016 Oh okay I seen the ID part now in the code Name field:<input class="Text ColouredFocus" type="text" value="" name="z1982738825" id="idc" maxlength="30" onchange="var wcall=wicketAjaxPost(';jsessionid=218BD339C1FCC52AE8F5C441F29C18F3.jport-eu-bs02?wicket:interface=:0:FormRegistration:ListRegistrationData:0:ItemRegistrationData:BorderBoxRegistrationData:PanelRegistrationData:Row2:Field::IBehaviorListener:1:', wicketSerialize(Wicket.$('idc')),function() { }.bind(this),function() { }.bind(this), function() {return Wicket.$('idc') != null;}.bind(this));" tabindex="2"> Quote Link to post Share on other sites
Ettienne 2 Posted August 8, 2016 Author Report Share Posted August 8, 2016 Seems to be working now, thanks man 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.