Relative Content

Tag Archive for playwrightplaywright-typescript

How to validate string values in a list of string using playwright

I have a list of string values in a array const multiple_Columns = ["apple","banana","pine"]
I have to validate above array strings with the present titles are present in the application.
const headerTitlesPresent = await homePage.header_Titles;
I have tried to validate multiple_Columns with headerTitlesPresent but my test case is failing.
expect(await headerTitlesPresent.allTextContents()).toContain(multiple_Columns);
and
awiai expect(headerTitlesPresent).toHaveText(multiple_Columns);

Playwright isVisible function is not working

how it appears on types.d.ts isVisible method in my codebase stopped working after an update. It’s now showing as deprecated. How can I solve this? I am checking if an element is visible, and then executing some conditions afterwards playwright playwright-typescript New contributor Naduni Mendis is a new contributor to this site. Take care in […]