I am trying to grab div\'s with the class: \'product\'. The problem is, some of the div\'s with class \'product\' also have the class \'product-small\'. So when I use xpat
xpat
This could be also solved with xpath. You just needed to use contains():
xpath
//div[contains(concat(' ', normalize-space(@class), ' '), ' product ')]
Though, yes, the CSS selector option is more compact and readable.
CSS selector