Checks if a PageLoaderElement/PageObject contains given class.
bool hasClass(item, String className) => _rootElementOfAndRethrow(item, 'hasClass').classes.contains(className);