Problems testing a site with Quantcast Consent Modal #24163
Unanswered
symn
asked this question in
Questions and Help
Replies: 1 comment
-
I'm dealing with a similar problem. We're using Retool, and use modals/popups to confirm user actions before those actions are executed. In earlier versions of Cypress, I was able to reliably do this, where the div is in the modal/popup:
Now, it may find the div occasionally, but mostly it cannot. And, because it's Retool, I don't have the means to set any id or attributes on the DOM elements. What's the best way to access these modals/popups? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
maybe someone can help me:
We test our site that contains a Quantcast consent modal and receive an error that
window.__tcfapi
is undefined.This comment sums up the problem (#22948 (comment)):
Before the update to
[email protected]
on[email protected]
, we were able to copy necessary functions into the window object that Cypress has access to via a workaround, like so:We'd run a
However, this fails now. There is no problem in modifying the window object though. However, it seems like that Cypress internally now runs tests differently.
window.top
is no reliable frame anymore i guess. I noticed that the Cypress testing window does not refresh anymore for new tests but adds new (project) iframes. This might be a problem with my simple copy / paste mechanism. Any ideas how to combat this problem?Beta Was this translation helpful? Give feedback.
All reactions