Skip to main content Skip to docs navigation

Update the class attribute of and element selected using element finder

Action
Element Finder Value
Class::Description
Class::add::classNameAdd a class to the element.
Class::remove::classNameRemove a class from the element.
Class::replace::removeClassName::addClassNameReplace one class with another.
Class::clearRemove all classes from the element.

Class::add::className

<input class="button"><input class="button btn">

Class::remove::className

<input class="button btn"><input class="button">

Class::replace::removeClassName::addClassName

<input class="button btn"><input class="button like">

Class::clear

<input class="button btn"><input class="">