Test an expression against the sample
The example contains three fictional product cards. The expression //article[@class="product"]/h2/text() returns Desk Lamp, Travel Mug and Notebook. Each result includes its location in the parsed tree. Changing the input clears the previous result, so the displayed output always belongs to the last completed query.
//article[@class="product"]/h2/text()