I want to know how navigate to next page on google automatically. I found this code but I don't know how use it.

HTML Code:
Dim temp = WebBrowser1.Document.GetElementById("pnnext")
  If temp Is Nothing OrElse TryCast(temp.DomElement, mshtml.HTMLAnchorElement) Is Nothing Then
   Return
  End If