title: Selenium - Get name of all the products present on a ecommerce website page using Java
body: <p>Suppose I searched on Amazon "Camera". Now a new page opens and I want to get all the product names present on that page.</p>
  
  <p>I understand I need to use 'for' loop but I am not sure how to proceed. Please help me out.</p>
  
  <p>I can get name of one product but how to get for all the products.
  If I use for loop 
      for(i=0;i&lt;"what should I put here";i++)
  I don't want to put an integer directly but a size of list that has all the products. But I am not sure how to get the size.</p>