Example : Validate search Results based on search

 Create Feature Project & Feature File
Right click on features project --->> other  --->> general folder --->> file  --->> searchProduct.feature


Make sure cucumber Framework plugin in eclipse

https://rahulshettyacademy.com/seleniumPractise/#/


Validate search Results based on search 

Homepage

Offers Page

Feature File:

Feature: Search and Place the order for Products


Scenario: Search Product for product search in both home and offers page

Given user is on GreenCart Landing Page

When user searched with Shortname "Tom" and extracted actual name of product

Then user searched for same shortname in offers page to check if product exist



Step Definitions File

Uploading: 89319 of 89319 bytes uploaded.