This thread is trying to answer question "Can I write tests with TypeScript if I only have basic Java knowledge and no JavaScript or TypeScript experience?"
yes you can Playwright supports Typescript https://playwright.dev/docs/test-typescript and Java too https://playwright.dev/java/docs/intro
Should you learn typescript to write playwright tests?
You don't have to because playwright supports several languages.
But new features tend to be available to javascript and typescript first. And typescript brings type safety, and thus prevents a whole type (see what I did there) of errors.
The type safety also applies to the Java bindings, so it's more about whether you want to use new features sooner, and are curious to learn a bit about typescript
Rayrun is a community for QA engineers. I am constantly looking for new ways to add value to people learning Playwright and other browser automation frameworks. If you have feedback, email [email protected].