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']
downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter