diff --git a/tests/utils/commonUtils.ts b/tests/utils/commonUtils.ts index 4a20e87b7..31585a9db 100644 --- a/tests/utils/commonUtils.ts +++ b/tests/utils/commonUtils.ts @@ -6,7 +6,8 @@ export async function handleConsentPopup(page: Page) { const consentContent = page.locator('#truste-consent-content'); const isConsentContentVisibile = await consentContent.isVisible(); if(isConsentContentVisibile) { - const consentButton = page.locator('#truste-consent-required'); + const consentButton = page.locator('#truste-consent-required').first(); + console.log((await consentButton.all()).length); expect(consentButton).toBeVisible(); await consentButton.click(); }