Controls

Custom controls used by other features are defined in this section.

Controls section

A good example is Hoverable control used in most pages. Since many controls have to be hovered so that save, edit and cancel buttons become visible, we wrapped the behavior in this generic control.

Other components which need this behavior simply inherit from this control and define their own fields and subcomponents.

Here is a snippet demonstrating how to use Hoverable on role status control:

Role status control

Then you can define this RoleStatusControl and use it on another page object:

After defining control on page object, we can test it:

Last updated

Was this helpful?