tinear10 1 Posted January 17, 2013 Report Share Posted January 17, 2013 I am trying and failing to click on a Google result by the destination URL. I can code a version that clicks on a the Title but not by the destination URL. My feeling is that just searching and clicking by Title on Google results can result in false clicks if there are duplicate titles. Filtering the click by URL makes sense if I can figure out how to do it. Thank you,Matt Quote Link to post Share on other sites
AutomationNinja 194 Posted January 17, 2013 Report Share Posted January 17, 2013 I tried the same and I don't think it can be done. The work around is to scrape it all to a list and then navigate to them that way. Quote Link to post Share on other sites
tinear10 1 Posted January 17, 2013 Author Report Share Posted January 17, 2013 I see. I think the click on title has to be the way to go then. Maybe a loop that clicks everything with the same title? That way you will still get the link you want clicked if there is a "false positive" Quote Link to post Share on other sites
POS 2 Posted January 17, 2013 Report Share Posted January 17, 2013 I made it search for a URL I had predefined. Like this: ui text box("URL to be clicked", #url to landingpage) (some code in between to navigate to a google search) click(<href=w"http://{#url to landingpage}*">, "Left Click", "No") It then search for a specified URL on the page, and click on the first URL that contains this string. This is not refined in any way, but seams to work in the bot I have made. Quote Link to post Share on other sites
addamroy 36 Posted January 20, 2013 Report Share Posted January 20, 2013 Why not scrape each URL in the Google results to a list, then navigate to each one in the list via a socket (would be real quick that way) and save the URL of the landing page. Then do whatever with the landing page URLs from there, navigate to them or whatever it is you want to do. 1 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.