Skip to content

Hover Steps

Source: src/tests/steps/actions/hover.step.ts.

See shared placeholder rules in Step Parameter Conventions.

Signature: the user hovers the cursor over the {string} element

What it does:

  • Resolves locator by name.
  • Runs Playwright hover() on the target element.

Parameters:

ParameterRepresentsExpected data
{string}Target locator nameExisting locator key (for example menuTrigger).

Example:

When the user hovers the cursor over the "menuTrigger" element
  • Step fails if locator is missing.
  • Step fails if hover action cannot be completed.