// Inspect a website and press CTRL + F ( curser should be selected on inspect side )to open xpath Search bar on chrome. //Find Specific text with element H4 > //h4[text()='Cucumber - 1 Kg'] //Selecting parent of H4 element with text 'Cucumber....' > //h4[text()='Cucumber - 1 Kg']//parent //Selecting parent of H4 element with text 'Cucumber....' with specific class > //h4[text()='Cucumber - 1 Kg']//parent::*[@class='production-action']