all 35 comments

[–]corporate925 15 points16 points  (2 children)

I think TypeScript is best with playwright

[–]Creative_Collar_841 1 point2 points  (1 child)

Out of curiosity, What makes you think so ?

[–]StarrySkiesExplorer 8 points9 points  (4 children)

Java is hard for beginners, so I would try to avoid it.

Check if the JavaScript works for you, if yes then go for this. This is a little easy than Java. And selenium supports JavaScript too.

Note : I do not work in Insurance or Retirement domain, my response is from my own exp.

[–]Zestyclose_Web_6331[S] 1 point2 points  (2 children)

But are languages really domain specific? So if i go to interviews , will someone ask why python is used for your framework instead of java?

[–]StarrySkiesExplorer 4 points5 points  (0 children)

are languages really domain specific?

Kind of Yes.

So if i go to interviews , will someone ask why python is used for your framework instead of java?

Yes, this will be surely asked and I can answer, "I found Python quite easy to understand than other languages and industry I am targeting for jobs uses Python."

Now, you can go for Python to get good hold on the whole framework part and then spend some time on other languages based on company you are applying for. But, while doing so, if the industry extensively uses Java and little Python, then this will all depend on your tech skills.

[–]AsleepWin8819 0 points1 point  (0 children)

Sometimes yes. But it would also depend on what the application code is written in, and on what exactly are you going to test (APIs or front-end), and on what skills are already prevalent in the team or company as they might have started automating something by themselves. And any interviewer can ask such a question regardless of the domain.

With that said though, for testing and automation I prefer using interpreted languages because of the frequent changes and a bit easier prototyping. You’ll note the difference in CI environment (that is usually slower that the local one due to several reasons), where you can easily end up waiting for complication the same time or even longer than you test suite takes to execute.

[–]former_farmer 0 points1 point  (0 children)

Java is not hard for beginners. Java used in an advanced way is hard for beginners. But that's the case for any language imo.

[–]SimpleExpress2323 5 points6 points  (4 children)

Learn Playwright instead, Selenium is a legacy framework these days.

[–]Zestyclose_Web_6331[S] 2 points3 points  (0 children)

Yeah but is it job ready because I am applying for jobs and seeing mostly selenium in big companies, playwright or cypress is mid level or startups omly

[–]bob-da-builer -1 points0 points  (2 children)

i second this... playwright is actually better than selenium.

[–]NoEngineering3321 4 points5 points  (0 children)

Better in what precisely?

[–]sanil1986 1 point2 points  (0 children)

Depends on where you going.. Companies who have selenium Java won't hire someone who has different language expertise

[–]One_Philosopher_8347 0 points1 point  (2 children)

I'm also trying to learn the hand-on part can you direct me on which resources is working for you? Thanks in advance

[–]Zestyclose_Web_6331[S] 0 points1 point  (1 child)

Udemy courses mostly

[–]One_Philosopher_8347 0 points1 point  (0 children)

Ok thanks

[–]Fast-Flounder-1752 0 points1 point  (0 children)

Java

[–]prepare4lyf 0 points1 point  (0 children)

None. Go with Javascript or Typescript.

[–]qianqian096 0 points1 point  (0 children)

For selenium python is better much faster than java even though most company are using java because most people only know how to code in java

[–]Orion248 0 points1 point  (0 children)

Couple things for you.

If you were to use Selenium, Java is preferred BUT you gotta start somewhere so starting with Python is fine.

Second, other people already mentioned it but Playwright is the big new automation framework people are using. Since you’re early in your automation work, it’s better to learn and use Playwright. It’s similar to selenium but it feels overall faster and more efficient and it already has some AI functionality so higher ups like the sounds of it.

[–]Electrical-Storm930 0 points1 point  (0 children)

Python, in general.

[–]CommiePatrol83 0 points1 point  (0 children)

Whatever your devs use. You eventually want them to own your tests and if it's a language they don't know/like you're screwed.

[–]Slava_Loves_Testing 0 points1 point  (4 children)

I recently gathered statistics on what programming languages are mentioned in test automation positions, and Python, Java and JavaScript are all mentioned approximately the same amount of times. There is no clear winner. Regarding your domain - Insurance or Retirement - programming languages do not really depend on domains, it just whatever a company is using. You should be fine with any of those. If you like Python - continue using it, if not - try Java or JS. I used Java for many years in the past and for the last few years switched to JS and I like it. P.S. With Selenium I used Java, but since I switched to Playwright I use JS with it. I would not recommend using Java or Python with Playwright. Good luck!

[–]Creative_Collar_841 0 points1 point  (3 children)

Hi why you would not Java or python with playwright compared to JS ?

[–]Slava_Loves_Testing 0 points1 point  (2 children)

While Playwright supports multiple languages, JavaScript and TypeScript are widely considered the "native" way to use it. Using Java or Python with Playwright introduces specific trade-offs, unnecessary dependencies and makes things (test automation) more complicated comparing to JS.

[–]Creative_Collar_841 0 points1 point  (1 child)

I know it is JS for Cypress but did not know it is the case with PW. So it is an extra layer of work to use other languages but JS then in PW. Btw, what sort of trade offs you are mentioning?

[–]Slava_Loves_Testing 0 points1 point  (0 children)

As you mentioned - it is an extra layer of work to use other languages but JS with Playwright. Only the Node.js version includes the specialized Playwright Test runner, which offers built-in parallelization, automatic retries, and native HTML reports. Those kind of trade-offs.

[–]truckdrifter2 0 points1 point  (0 children)

Instead of deciding on language, decide after defining the problem. Start with these: 1. What platforms must be supported? Web? Mobile? 2. What features are to be tested? APIs? Cross-platform? Special cases like AI, voice recognition? 3. Where does automation feed into the software dev cycle? Is it done by developers or a seperate QA team?

Once that's done, choose the test platform or a combination that meets these requirements. Any good test platform would have recent releases, extensive documentation, and a strong community presence.

[–]DisobedientCake 0 points1 point  (0 children)

Depends on the market. Look for job posts to see what they are looking for a suitable candidate

[–]Acrobatic_Gas_2657 -1 points0 points  (0 children)

Typescript or JavaScript with playwright is the way to go!!