By.className constructor

const By.className(
  1. String className
)

Returns an element whose class name contains the search value; compound class names are not permitted

Implementation

const By.className(String className) : this('class name', className);