Search code examples
c#watin

Using WatiN to crawl to next page on google


How can I navigate to the next page using WatiN ?

I need to automate clicking on the page numbers on the bottom from 1, 2, until the end...


Solution

  • Something along these lines should get you started:

    var ie = new IE();
    ie.Link(Find.ByText("1")).Click();
    

    While it's really basic, it should do the job. You could throw that in a simple loop and be done with it.

    Good luck!