flexboj 0 Posted January 4, 2015 Report Share Posted January 4, 2015 Hi guys..how do I set up my bot to click on a specified image that exists twice? It's an captcha image.The site presents 4 images which 2 of them are identical and I have to click one of the identical ones Quote Link to post Share on other sites
itexspert 47 Posted January 4, 2015 Report Share Posted January 4, 2015 Which site please we need more info to help you? Quote Link to post Share on other sites
Gogetta 263 Posted January 4, 2015 Report Share Posted January 4, 2015 Sounds like your looking for Element Offset. Most of the time just entering 0 as the offset will help. But play around with the offset count until you get to the one you need. Quote Link to post Share on other sites
itexspert 47 Posted January 4, 2015 Report Share Posted January 4, 2015 Usually Gogetta is right but from my experience Element Offset is not safe,you see when two or more elements are the same then you use positions on the page or (Element offsets),thing is these positions can change from time to time so your script could have errors i prefer to identify the element correctly that is why i asked you to show us your Code! Quote Link to post Share on other sites
Gogetta 263 Posted January 5, 2015 Report Share Posted January 5, 2015 Usually Gogetta is right but from my experience Element Offset is not safe,you see when two or more elements are the same then you use positions on the page or (Element offsets),thing is these positions can change from time to time so your script could have errors i prefer to identify the element correctly that is why i asked you to show us your Code! I don't feel that I am wrong now. The function is used when trying to identify elements that are identical (similar in every way). Based on the question posted by the OP these images are "identical". I agree that it's not safe and it's best to look at other options first. But when the elements are in fact identical then the element offset is the function to use. Try having a script click only the 2nd link. LinkLinkLink Now please, without using the element offset explain the correct way. Quote Link to post Share on other sites
flexboj 0 Posted January 5, 2015 Author Report Share Posted January 5, 2015 sometimes the same image exists in different size but the image url doesn't change. I need the bot to click the image url that exists twice for example: url.com/image/captcha1.pngI attached 3 examples of those images http://s27.postimg.org/6nfpp7j7n/Screenshot_2015_01_05_10_34_00.pnghttp://s29.postimg.org/idzy2ttyv/Screenshot_2015_01_05_10_34_50.pnghttp://s2.postimg.org/wynmx7ttl/Screenshot_2015_01_05_10_39_46.png Quote Link to post Share on other sites
itexspert 47 Posted January 5, 2015 Report Share Posted January 5, 2015 Hmmm Gogetta is (Like usual) Correct this is a tricky problem! Quote Link to post Share on other sites
Gogetta 263 Posted January 5, 2015 Report Share Posted January 5, 2015 I know what site you are trying to code this for and this should work to click the image.click identical image to validate.ubot 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.