RATPFINK 3 Posted January 11, 2013 Report Share Posted January 11, 2013 I am working on a bot that needs to click an element with no distinct attributes other than href which will change daily. Its position on the page will also change daily. It will always be at the same vertical position on the page as an element I can find. So my thinking is if I can set the position of that element as a variable I can then use that variable the element I need. I just can't figure out how to do it. My friend google lead me to the javascript to do it, but how would I then set that as a variable? Is this possible? Thanks in advance as always. Quote Link to post Share on other sites
Kazzo 9 Posted January 11, 2013 Report Share Posted January 11, 2013 Can't you just make a picture and let the bot to click on the picture? Sometimes it solves the problem Quote Link to post Share on other sites
RATPFINK 3 Posted January 11, 2013 Author Report Share Posted January 11, 2013 Can't you just make a picture and let the bot to click on the picture? Sometimes it solves the problemunfortunately no. there are several elements on the page that are identical. Quote Link to post Share on other sites
UBotBuddy 331 Posted January 11, 2013 Report Share Posted January 11, 2013 I have been looking for a page like this for a while now to develop a tutorial. Can you PM me the url so I can test with it? Buddy Quote Link to post Share on other sites
steelersfan 38 Posted December 23, 2014 Report Share Posted December 23, 2014 A good place to test this with is craigslist repost/renew page. That has many of the same elements over and over. Quote Link to post Share on other sites
itexspert 47 Posted December 25, 2014 Report Share Posted December 25, 2014 Cant you Wildcard it? Quote Link to post Share on other sites
deliter 203 Posted January 18, 2015 Report Share Posted January 18, 2015 forget about the ubot auto finding helper,that should only be used for a quick "dirty build" on a fairly coherent web page,best thing to do is use "$document text" and find the href,if the page isnt compiled by a cowboy,their should be some sort of coherent logic to the page( hopefully ha ) so each time the page loads,it reads the document text,have the line scraped to a variable,and ubot click href {#link} 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.