Assignment 10 Xpath help

Hi -

I m trying to capture prouct desc, price and seller of the first 5 results of my product wish list. Since the results are displayed differently for each product, im unable to compute the xpath


Proudct 1 - Result 1 (Desc) - //[@id=“result_0”]/div/div[3]/div[1]/a/h2
Product 2 - Result 1 (Desc) - //

Im using the index to loop through the results

Can you help with an Xpath expression that can identify the product within the result set

Hi! You can refer to our KB page -

Don’t forget about relative xpath. You can use something like:
Product 2 - Result 1 (Desc) - //[@id=“result_0”]//h2