Maik007 0 Posted June 30, 2014 Report Share Posted June 30, 2014 (edited) Hello, i want make a bot and after starting i solved the most things with the support and with learning!But since two days i can not solve this problem here: I want klick on buy button and that make my bot. Now is my problem that there are the samebuttons 11times and the ids change at the next site.Why ids change. it is a game and i want buy goods. there are seller and they have difference ids. when the seller have next day nothing, than there is a new seller with new id. The cheapest product is only upside. When i start my bot with innertext:buy than click the bot always the last innertext buy and i buy the expensivst good.What can i do, that my bot click always the first buy button and not the second! I find ubot really good, but u must learn a lot and this is the next step to learn. Have u an idea how i can solve this problem? Edited June 30, 2014 by Maik007 Quote Link to post Share on other sites
the_way 52 Posted June 30, 2014 Report Share Posted June 30, 2014 there is the option to pick a specific element in the code, so you can specify the exact text, or element, have you used this feature yet? Quote Link to post Share on other sites
UBotDev 276 Posted June 30, 2014 Report Share Posted June 30, 2014 You should use function "$element offset" ( inside "click" command) and set offset to 0 to always click the 1st instance on the page.Btw, if you don't use that and UBot matches several buttons from the page, all will be clicked at the same time, but usually you get redirected like you would click the last one (since that's the last command sent to browser). Quote Link to post Share on other sites
Maik007 0 Posted June 30, 2014 Author Report Share Posted June 30, 2014 Hello,thx. It works with offset. Now i understand this function.0 is only first item and wenn i want the next i must get 1. That is very helpfull. I think sometimes it is better other people to ask.I work on it 2 days ;-) because i do not understand offset ;-) Thx for helping! Quote Link to post Share on other sites
UBotDev 276 Posted June 30, 2014 Report Share Posted June 30, 2014 Glad that you solved it. Btw, if you haven't seen the tutorials yet, I would suggest you do so: http://www.ubotstudio.com/tutorials Quote Link to post Share on other sites
LoWrIdErTJ - BotGuru 904 Posted June 30, 2014 Report Share Posted June 30, 2014 it would be easier to help you if we seen an example of the html code for the buttons as well. so that to better help you with your issue 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.