Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion lib/helper/Playwright.js
Original file line number Diff line number Diff line change
Expand Up @@ -3354,7 +3354,11 @@ async function proceedSee(assertType, text, context, strict = false) {
if (!context) {
const el = await this.context;

allText = [await el.locator('body').innerText()];
if (el.constructor.name) {
allText = [await el.locator('body').innerText()];
} else {
allText = [await el.innerText()];
}
description = 'web application';
} else {
const locator = new Locator(context, 'css');
Expand Down