diff --git a/lib/helper/Playwright.js b/lib/helper/Playwright.js index b17b56dee..3f7285f53 100644 --- a/lib/helper/Playwright.js +++ b/lib/helper/Playwright.js @@ -3408,7 +3408,8 @@ async function proceedSee(assertType, text, context, strict = false) { if (!context) { const el = await this.context; - allText = [await el.locator('body').innerText()]; + allText = el.constructor.name ? [await el.locator('body').innerText()] : [await el.innerText()]; + description = 'web application'; } else { const locator = new Locator(context, 'css');