I m using playwright as library for testing with cucumberjs as test runner.
The template which i am using is forked from here.
https://github.com/Tallyb/cucumber-playwright.
The template uses only the playwright locators using CSS or x-path
https://github.com/Tallyb/cucumber-playwright.
My question is it possible to use the playwright built in locators (https://playwright.dev/docs/locators) instead of the CSS or x-path locator
.
The key difference is the playwright i m using as library instead of the playwright test runner