Writing XPath ExpressionsGiven the following HTML structure:…
Writing XPath ExpressionsGiven the following HTML structure: Product 1 Price: $29.99 Quantity: 100 Product 2 Price: $49.99 Quantity: 50 Answer the following:(a) Write the XPath to select all product elements on the page (used in the for loop). (1 pt)(b) Within a loop iterating over each product row, write the XPath to extract the product title text from the link. (1 pt)(c) Within the same loop, write the XPath to extract the price (first span inside product-info). (1 pt)