Jump to content
UBot Underground

How would I find the element offset position


Recommended Posts

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.

Link to post
Share on other sites
Can't you just make a picture and let the bot to click on the picture? Sometimes it solves the problem

unfortunately no.  there are several elements on the page that are identical.

Link to post
Share on other sites
  • 1 year later...
  • 4 weeks later...

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}

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