hasClass function

bool hasClass(
  1. dynamic item,
  2. String className
)

Checks if a PageLoaderElement/PageObject contains given class.

Implementation

bool hasClass(item, String className) =>
    _rootElementOfAndRethrow(item, 'hasClass').classes.contains(className);