Hi @MikeSpike ,
Based on your description, I think what you want to implement is something like web page automation via some code, right? If this is the case, I have an idea, you can simply refer to it:
- Get process of browser using System.Diagnostics and then get the handler using System.Windows.Automation API.
- Created a new tab with
Ctrl + Tcommand in browser with Sendkeys() function.
- Focus in addressbar with
Ctrl + Lcommand and type the url
https://www.google.com/search?q=adidas&start=10using Sendkeys() function as well.
- Enter and then you can get the page results you need.
But if you want to open these ten result pages shows in searched page, then I suggest you to use the Google Search API to get the list of pages you need, and then use the method I mentioned above to open these pages.
In addition, I'm not sure what programming language you're using, VB or C#? If possible, could you describe your needs more clearly? Thank you for your understanding.
If the answer is the right solution, please click "Accept Answer" and kindly upvote. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
0 additional answers
Sort by: Most helpful
open specific url results in next tab
Is it possible to open pages based on the search results in google? For example i search "Adidas", then i need the url results to be open in the next tabs along with search result. the url we need to open in other tabs samples are: instagram, linkedin, twitter, website of adidas. The search results will just limit up to page 2 of the page results.
Sign in to comment
Hi @MikeSpike ,
Since this question has nothing to do with .NET based on your reply. I removed the
And in your case, you want to implement webpage automation using Excel VBA, maybe you can try to use Seleniumbasic and operate it through the corresponding browser driver. But I don't know much about this, so I hope there will be other relevant experts who can give you advice or solutions.