GitHub Actions : Issues for checking the visibility of locators (Playwright)



This content originally appeared on DEV Community and was authored by Atai Rabbi

We are using Playwright (tS) POM. our scripts are okay when run from a local machine. But when it’s run from GitHub Actions we are encountering Errors.

On the page, we have many dynamic cards. For now, 20 cards and all cards have the same locators
(‘//*[contains(@class,\’css-scunm\’)]’)

So, when GitHub actions run in some tests GitHub runs okay but in some tests, the same locator shows Errors.
How can I solve this issue?
I’ll be glad if any one help.

Image description


This content originally appeared on DEV Community and was authored by Atai Rabbi