# How do I record a hover menu, a new tab, or an iframe?

> Hover, then click inside the menu: the hover is added. New tabs and iframes are followed. Scrolling, however, is not a step.

Source: https://qanary.dev/en/help/hover-menus-tabs-iframes  
Updated: 2026-11-04  
Product: Qanary, no-code automated testing for e-commerce  
Site index for AI assistants: https://qanary.dev/en/llms.txt

Qanary records menus that open on hover, links that open a new tab, and fields placed inside an iframe, such as a payment provider's card fields. A few gestures need a small habit, explained here, and a few are not recorded.

## Hover menus and mega menus

To record a click in a menu that opens on hover:

1. Move the mouse over the menu entry, in Qanary's browser.
2. Click the link you want in the open menu.

**Expected result**: two steps appear, "Hover on…" then "Click on…". Qanary infers the hover from the click: it adds it because the clicked element was visible only on hover.

Two rules to know:

- **A hover on its own, with no click afterward, is not recorded.** To check the content of a menu, open it, click one of its links, then check the page you land on.
- **The added hover is an optional step**: if the menu is already open on replay, the test continues.

## New tabs and windows

When a link opens a new tab, Qanary follows it and the rest of the journey is recorded there. A browser window that opens separately (for a payment or a share dialog) is handled like a tab, at the test's screen size. When that tab closes, Qanary returns to the original tab.

Opening or closing a tab is not a step, and you can't switch from one tab to another manually.

## Iframes, including payment fields

A field inside an iframe is filled in and clicked like any other: Qanary finds the element iframe by iframe, on replay as during the recording. This is the case for most credit card fields.

A captcha, however, is never solved, whether it's in an iframe or not. Use your payment provider's test payment methods when it offers them.

## Scrolling

Scrolling the page is not a step. On replay, Qanary scrolls the page to the targeted element, as long as it is already on the page.

On a list that loads as you scroll ("infinite scroll"), a product that appears only after scrolling may therefore be missing on replay. Click a "Load more" button instead when the site has one, or choose a product that is visible as soon as the page opens.

## Copy and paste

During the recording, you can paste text from your computer into Qanary's browser: it becomes a text entry. Only text can be pasted, 32 KB at most.

## If it doesn't work

- **The menu doesn't open on replay**: check that the "Hover on…" step is in the test, just before the click.
- **An element in a web component isn't found**: Qanary supports open web components, not those whose content is closed (closed shadow DOM).
- **Drag and drop** is not recorded: see [What can't Qanary test yet?](https://qanary.dev/en/help/what-qanary-cannot-test-yet).

## Frequently asked questions

### My test always picks the same product in the list: is that normal?

Yes. A test targets the exact element you clicked, that specific product, not "the first one in the list." If it disappears from the list, the step fails. Choose a product that stays on sale.

### Does a dropdown list whose values change break the test?

Not necessarily: if an option's technical value changes, Qanary finds the option by its label.
