Here is a real-world example of using Selenium WebDriver for scraping.

This short program is written in Java and scrapes book title and author from the Amazon webstore.

This code scrapes only one page, but you can easily make it scraping all the pages by adding a couple of lines.

You can download the souce here.