Playwright with Java or Node (JavaScript / TypeScript) which is best?

Поділитися
Вставка
  • Опубліковано 23 лип 2024
  • Just my thoughts!
    Chapters:
    0:00 Which is better?
    1:20 1. Team strength
    2:44 2. TS feels easy
    5:00 3. Reporting (no code)
    6:25 4. Test runner
    8:23 5. VS Code extension
    #playwright
    ---------------------------------------------------------------------
    Tamil UA-cam Channel:
    / @kurimurai
    ---------------------------------------------------------------------
    🎁Just in case you want to support me ☺️ donation might really be helpful.
    BuyMeCoffe: www.buymeacoffee.com/letcode
    GPay: koushik350-1@okaxis
    -------------------------Thank you--------------------------
    Thanks for watching, if you like the video, give it a thumbs up 👆.
    Sharing is caring, kindly share the video with your friends and colleagues.
    Don't forget to subscribe and hit the bell 🔔 notification.
    -------------------------------SOCIAL-------------------------------
    📝Test Practice Site: letcode.in/
    🐦Discord: / discord
    📸Instagram: / letcode.in
    🎓 LinkedIn: / ortoni
    ⛳️ XPath Extension: bit.ly/2T5EUCu
    Join our WhatsApp group (Only for Channel Members)
    bit.ly/3cSPCpm
    #letcode

КОМЕНТАРІ • 39

  • @rohitsaini4224
    @rohitsaini4224 Рік тому +5

    Totally agreed, but real problem is QA person which is already working in selenium with java dont want to move in another language due to skill lack issue
    Another face is - Manager ot test lead are not aware the power of js framework and knowledge.
    To secure own job they avoid new tech in automation testing
    They still are focusing on selenium with java only

    • @letcode
      @letcode  Рік тому +1

      Yeah, actually js based test automation is in demand in the market compared to Java also the pay is high, but still most of the testers want to learn only selenium+ Java.

    • @xoda345
      @xoda345 Рік тому +2

      @@letcode In Naukri, atleast from India, I rarely see recruitment based on Playright or JS based framework. Still 80 percent market is dominated by Selenium Java.

    • @letcode
      @letcode  Рік тому +1

      Yes it is, but it is going to change in a few years, i switched my job this year and i didn't get a single call for selenium.
      I got almost for webdriver IO and protractor.

    • @xoda345
      @xoda345 Рік тому +2

      @@letcode It's opposite for me. I got released from my current project and attended internal and external interview and almost all the calls I got was from Java Selenium Cucumber. I worked in Protractor for one year. But they asked me question on Selenium Java BDD. Also Protractor and WebdriverIO are basically selenium based api's. So it means Selenium still holds the market.

    • @rohitsaini4224
      @rohitsaini4224 Рік тому +1

      Last 5 years i am working in JavaScript based framework and it is simple to use and configure

  • @swaroopnadella
    @swaroopnadella 10 місяців тому +1

    Thanks Koushik, it's very useful insights.

  • @silvius7647
    @silvius7647 Рік тому +1

    Thank you for this video, I was really looking for a JS/TS vs Java Playwright from the perspective of someone who knows both variants.

    • @letcode
      @letcode  Рік тому

      Glad it helps 😊

  • @abhishekbhardwaj7764
    @abhishekbhardwaj7764 Рік тому

    Thanks bro..very helpful..

  • @ahamedabdulrahman
    @ahamedabdulrahman Рік тому +1

    I already guessed your thoughts on seeing the topic itself. When you were explaining HAR in Playwright, you were backing TS.
    In my current company, I somehow convinced my Manager to go with Playwright but he was reluctant to use Typescript. Mainly because of the junior resources. Training them in TS and brining them upto speed is a risky bet and Manager dont want to take it. Several Integrations with in house tools are already made in Java. Doing them again in TS/JS would be difficult.
    So finally ended up with Playwright Java only. But it was awesome too. Personally I love Java’s strict data typing and syntax. Lambdas are cherry on the top. So am lovin’ it…

    • @letcode
      @letcode  Рік тому +2

      Java is good no doubt about that, but js /ts is easy i guess.
      For example while during parallel execute, we have to use thread local or driver sharing techniques. Whereas in ts just change the worker to 2 to more. Nowadays I feel like writing less code 😃

    • @ahamedabdulrahman
      @ahamedabdulrahman Рік тому +1

      Mmm. Need to explore more in TS then. Thanks Kaushik.

  • @AnUnprofessionalChef
    @AnUnprofessionalChef Рік тому +1

    Thanks for the video as always 😊The biggest challenge is the integration with the test plan (azure devops )/ jira for playwright typescript , just hope microsoft give native integration for these …..
    Or if you have any idea please make a video on that…. Thanks

    • @letcode
      @letcode  Рік тому +1

      I saw some requests for this in playwright GitHub, i hope they will bring this as well.
      Since it's new (2years) we can expect more in the future.

  • @rameshbabu2104
    @rameshbabu2104 8 місяців тому +1

    Hello Koushik, need some suggestions related to this video. My company using angular and backend as .net c#, and for qa automation we planned to use playwright but which language to pick is the question? How to evaluate between js,ts,python,java and c#? And finally need to give data pointa. Can you help me in this?

    • @letcode
      @letcode  8 місяців тому

      As mentioned in the video, TS is good.
      Java and c# are mostly the same. So the down side is also the same.

  • @dixondavis7663
    @dixondavis7663 Рік тому +1

    The video was very informative. However, can we create/read/write Excel and Text files using Typescript? Similarly during the automation there may be scenarios where we have to connect to Database to retrieve a value (yes, even during UI automation). Is that possible to connect DB using TS?

    • @letcode
      @letcode  Рік тому

      Yes, it is possible to R/W Excel and DB.

  • @Snehaandsahasra
    @Snehaandsahasra 7 місяців тому +1

    Thank you for sharing your views . It is very helpful 🙏. Also one more question. In playwright Java docs I don’t see fixtures topic. Is fixtures applicable to only JavaScript/ Typescript?

    • @letcode
      @letcode  7 місяців тому

      Yes, fixtures are part of the playwright test runner.

    • @Snehaandsahasra
      @Snehaandsahasra 6 місяців тому +1

      Thank you very much . Appreciate for the quick replies 👍

  • @bharathr6669
    @bharathr6669 Рік тому +1

    What are your thoughts about playwright with cucumberjs? Are you planning on any videos with this combination?

    • @letcode
      @letcode  Рік тому

      Not yet planned,
      If we use cucumber we will lose the core features of the playwright test runner.
      That's why I'm not interested in cucumber.

    • @viswathegreat2
      @viswathegreat2 Рік тому +1

      @@letcode Could you please explain a bit more about the core features that would be lost if we use Cucumber on top of playwright?

    • @letcode
      @letcode  Рік тому

      @@viswathegreat2
      1. HTML report, screenshot, video &. Tracing on failure/always on/on Retry.
      2. Retry mechanisms
      3. Parallel execution out of the box
      4. Cross browser testing as projects.

    • @viswathegreat2
      @viswathegreat2 Рік тому +1

      @@letcode Thanks for the quick reply:)

  • @ahamedabdulrahman
    @ahamedabdulrahman Рік тому +1

    I also think, as a new tool the amount of effort that Cypress is making is not done by Playwright. In their Twitter Handle, Cypress used to keep sharing success stories, giving pro users evangelists title. They are promoting a lot which Playwright is missing. In a recent interview a CTO of a startup questioned me about Cypress but he didn’t know Playwright.

  • @parthipan872
    @parthipan872 Рік тому +2

    Can you explain python scope compare with Javascript?

    • @letcode
      @letcode  Рік тому

      I'm not good at python, so i can't decide which is the best.
      But In general automation and python have less scope in the market.

    • @parthipan872
      @parthipan872 Рік тому +1

      Thanks for information bro

  • @jeno101
    @jeno101 5 місяців тому +1

    any special benefits between using JavaScript and TypeScript

    • @letcode
      @letcode  5 місяців тому

      Yes, you can refer to my ts playlist.
      ua-cam.com/play/PL699Xf-_ilW5VXRsJwBJLmDGrsrYxBjQT.html&si=CwwuuZ_eDA40H_xu

    • @jeno101
      @jeno101 5 місяців тому +1

      @@letcode Thaks ,, hey when we use the command npm install playwright@latest what javaScript framework does it installs mocha or jest or anything else ?

    • @letcode
      @letcode  5 місяців тому +1

      By default it comes with a playwright test runner.

    • @jeno101
      @jeno101 5 місяців тому

      @@letcode okay thanks got it.