It is often necessary to count elements on a given component. This could be the number of results on a search page or the number of teasers on an editorial homepage. In most cases, those elements are defined as HTML classes.
If it is only necessary to check whether an element exists or not the easiest way is to use the CSS selector check. There you just have to enter the class name (e.g. #teaserElement). If the number is important the best solution is the XPath checker, where a simple query looks like:
This query looks for an HTML div element that contains the class teaserElement. If the element is not a div container just use section or figure or whatever the element is declared as.
This XPath checks if a html meta tag with the property og:title exists.
For static elements like a title tag, canonical tags or even a critical CSS element, we recommend using the HTML check. When important elements are rendered on run-time use the DOM check.