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

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
(‘/…


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


Print Share Comment Cite Upload Translate Updates
APA

Atai Rabbi | Sciencx (2024-08-21T07:07:55+00:00) GitHub Actions : Issues for checking the visibility of locators (Playwright). Retrieved from https://www.scien.cx/2024/08/21/github-actions-issues-for-checking-the-visibility-of-locators-playwright/

MLA
" » GitHub Actions : Issues for checking the visibility of locators (Playwright)." Atai Rabbi | Sciencx - Wednesday August 21, 2024, https://www.scien.cx/2024/08/21/github-actions-issues-for-checking-the-visibility-of-locators-playwright/
HARVARD
Atai Rabbi | Sciencx Wednesday August 21, 2024 » GitHub Actions : Issues for checking the visibility of locators (Playwright)., viewed ,<https://www.scien.cx/2024/08/21/github-actions-issues-for-checking-the-visibility-of-locators-playwright/>
VANCOUVER
Atai Rabbi | Sciencx - » GitHub Actions : Issues for checking the visibility of locators (Playwright). [Internet]. [Accessed ]. Available from: https://www.scien.cx/2024/08/21/github-actions-issues-for-checking-the-visibility-of-locators-playwright/
CHICAGO
" » GitHub Actions : Issues for checking the visibility of locators (Playwright)." Atai Rabbi | Sciencx - Accessed . https://www.scien.cx/2024/08/21/github-actions-issues-for-checking-the-visibility-of-locators-playwright/
IEEE
" » GitHub Actions : Issues for checking the visibility of locators (Playwright)." Atai Rabbi | Sciencx [Online]. Available: https://www.scien.cx/2024/08/21/github-actions-issues-for-checking-the-visibility-of-locators-playwright/. [Accessed: ]
rf:citation
» GitHub Actions : Issues for checking the visibility of locators (Playwright) | Atai Rabbi | Sciencx | https://www.scien.cx/2024/08/21/github-actions-issues-for-checking-the-visibility-of-locators-playwright/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.