Google finance

I need help in the following problem of google finance web GUI with loop

  1. Open
  2. Search for three product : Laptop Table, Mouse and Pen Drive
  3. Fetch the Product complete name and Price of each Product. Fetch the details of 1st product
    displayed in search result.
  4. Write The details in excel file.