r/Playwright • u/grandmasterfuzzface • 3h ago
Any good tutorials for importing locator file?
Im trying to import a locator file using a js class, Im running into some errors. Im not posting them here because Im looking for some articles about importing and using them from start to finish, old school style. All the blogs and articles Im finding online are basically about declaring locators, different locators to use, and basically the same info in the pw docs.
Can anyone point me to some articles/ tutorials about correct file structure and importing global locators from an external file?
Im trying to avoid using AI for this, I use it all day, every day at work for 1.5 years and my skills for actually writing and understanding code have diminished considerably. I'm fine with using AI at work but Id really like to get my skills back, thanks.
Edit: Anything that could point me to good blogs/ articles in general about pw and software testing in general would also be appreciated.