How does Qanary handle cookie banners, pop-ups, A/B tests?
Qanary replays the click you made on the cookie banner while recording. It doesn’t close pop-ups, swap products, or force an A/B version.
Qanary replays what you did during the recording, nothing more, nothing less. The click on a cookie banner is replayed when needed; other pop-ups (discount, newsletter, survey) are not closed automatically; an out-of-stock product is not replaced; and Qanary sees whichever version of an A/B test your site serves it.
Cookie banners
During the recording, click the cookie banner like a customer would: “Accept” or “Reject.” Qanary recognizes the banners of the main consent tools (including OneTrust, Didomi, Axeptio, and tarteaucitron, 16 in total) and turns your click into an optional step:
- when the test runs, if the banner appears, Qanary makes the same choice again: it accepts if you accepted, it rejects if you rejected;
- if the banner doesn’t appear, the step is skipped after a wait of about 10 seconds, and the test continues;
- if the banner shows up late, after the planned step, nothing closes it: it can then hide the rest of the page and fail the test.
Every click inside the banner becomes a step. Click it only once, on the button that closes it.
Pop-ups
Windows that open on top of the page (a first-order discount, a newsletter sign-up, a survey) are not closed automatically:
- a pop-up you closed during the recording becomes a required step: if it doesn’t appear when the test runs, the test fails;
- a pop-up that appears only when the test runs stays open and can block the next step.
What to do: if the pop-up doesn’t appear on every visit, open the test and use “Mark as optional” on the step that closes it. For a pop-up that appears only on some visits, the safest option is to turn it off for tests on your site’s side, or on staging.
Out-of-stock products
Qanary always replays the recorded product: it doesn’t pick another one. If that product is out of stock, the step that adds it to the cart fails.
What to do: record your tests with a product that is always in stock and reserved for testing. If the product no longer exists at all, update the test: see Why does my test fail when my site works?.
A/B tests
During an A/B test, your site shows two versions of a page to different visitors. Qanary doesn’t force any version: it sees the one your site serves it, like any visitor. If the two versions differ on the tested journey, the test can pass one day and fail the next.
What to do: if your A/B testing tool lets you force a version with a URL parameter, add it to the test’s starting URL. Otherwise, ask your team to exclude the tested journey from the experiment, or run the test on staging.
Links that open a new tab
Qanary follows a link that opens a new tab, or a window that opens separately, at the test’s screen size. When the tab closes, the test returns to the original tab.
If it doesn’t work
- The test fails on a banner or a pop-up: look at the screenshot of the step in red. If the pop-up has no button to close it, send the link to the result to contact@qanary.dev.
- The result changes from one run to the next: see Why does my test pass only half the time?.
Frequently asked questions
Does Qanary accept or reject cookies?
It repeats the choice you made during the recording: it accepts if you accepted, it rejects if you rejected.
Should I record the click on the cookie banner?
Yes, if the banner appears during the recording: without that click, Qanary won’t close the banner when the test runs.
Was this article helpful?
Thanks. We’ll tell the canary.


Still have a question? Julia or Antoine will reply within 24 business hours at contact@qanary.dev. A human, not a bot. The canary stays down the mine.
For your AI assistant: this article as text, the help center index, the glossary.