Skip to content

Commit 80e4351

Browse files
authored
fix: proceedSee (#3939)
1 parent 8f9aebf commit 80e4351

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/helper/Playwright.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3408,7 +3408,8 @@ async function proceedSee(assertType, text, context, strict = false) {
34083408
if (!context) {
34093409
const el = await this.context;
34103410

3411-
allText = [await el.locator('body').innerText()];
3411+
allText = el.constructor.name ? [await el.locator('body').innerText()] : [await el.innerText()];
3412+
34123413
description = 'web application';
34133414
} else {
34143415
const locator = new Locator(context, 'css');

0 commit comments

Comments
 (0)