Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
I want to know how navigate to next page on google search automatically (123456789). I found this code but I don't know how use it.
 
Dim temp = WebBrowser1.Document.GetElementById("pnnext")
  If temp Is Nothing OrElse TryCast(temp.DomElement, mshtml.HTMLAnchorElement) Is Nothing Then
   Return
  End If
Posted 9-Aug-11 7:19am
Edited 9-Aug-11 7:37am
v2
Comments
Sam_IDEA at 9-Aug-11 12:26pm
   
Please elaborate your question. I'm not getting what you want to say.
-Sammy
edumaite at 9-Aug-11 12:36pm
   
Sure. I am making a small google tool and I want auto click on button called "next" for navigate to the next page on google search.Sorry for my bad english.Thanks.

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Just get the value of the href attribute inside that element, and navigate to it.
  Permalink  
Comments
edumaite at 9-Aug-11 12:46pm
   
I trying but I can not get it:
<span style="display:block;margin-left:53px;text-decoration:underline"> Next </span>
I can not find any id element.Can you help me?
edumaite at 9-Aug-11 12:47pm
   
<span class="csb ch" style="background-position:-96px 0;width:71px"></span>

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 195
1 Peter Leow 130
2 Zoltán Zörgő 120
3 CPallini 70
4 Atish K. Singh 55
0 Sergey Alexandrovich Kryukov 9,568
1 OriginalGriff 6,901
2 Peter Leow 4,737
3 Zoltán Zörgő 4,404
4 CHill60 2,932


Advertise | Privacy | Mobile
Web03 | 2.8.150129.1 | Last Updated 9 Aug 2011
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100