Handling Scenario: Select and Compare products in an E-commerce Site

  1. Navigate to URL: https://ca.ingrammicro.com
  2. Search for product: Apple
  3. Assert that search result is displayed.
  4. Create a method which takes arrays of SKU’s
  5. This method should find all the number of SKU’s in the list.
  6. If any SKU is not found than print error message and come out.
  7. if all the sku is found than check corresponding check box.
  8. Click compare
  9. validate Compare screen is displayed.
  10. Assert that correct products are compared by validating the product titles.