We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 58f9afa commit 797568eCopy full SHA for 797568e
tests/utils/commonUtils.ts
@@ -6,7 +6,8 @@ export async function handleConsentPopup(page: Page) {
6
const consentContent = page.locator('#truste-consent-content');
7
const isConsentContentVisibile = await consentContent.isVisible();
8
if(isConsentContentVisibile) {
9
- const consentButton = page.locator('#truste-consent-required');
+ const consentButton = page.locator('#truste-consent-required').first();
10
+ console.log((await consentButton.all()).length);
11
expect(consentButton).toBeVisible();
12
await consentButton.click();
13
}
0 commit comments