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

Поделиться
HTML-код
  • Опубликовано: 20 сен 2024

Комментарии • 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

  • @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 😊

  • @swaroopnadella
    @swaroopnadella Год назад +1

    Thanks Koushik, it's very useful insights.

  • @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.

  • @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.

  • @Snehaandsahasra
    @Snehaandsahasra 8 месяцев назад +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  8 месяцев назад

      Yes, fixtures are part of the playwright test runner.

    • @Snehaandsahasra
      @Snehaandsahasra 8 месяцев назад +1

      Thank you very much . Appreciate for the quick replies 👍

  • @abhishekbhardwaj7764
    @abhishekbhardwaj7764 Год назад

    Thanks bro..very helpful..

    • @letcode
      @letcode  Год назад +1

      Always welcome

  • @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.

  • @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:)

  • @rameshbabu2104
    @rameshbabu2104 10 месяцев назад +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  10 месяцев назад

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

  • @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 7 месяцев назад +1

    any special benefits between using JavaScript and TypeScript

    • @letcode
      @letcode  7 месяцев назад

      Yes, you can refer to my ts playlist.
      ruclips.net/p/PL699Xf-_ilW5VXRsJwBJLmDGrsrYxBjQT&si=CwwuuZ_eDA40H_xu

    • @jeno101
      @jeno101 7 месяцев назад +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  7 месяцев назад +1

      By default it comes with a playwright test runner.

    • @jeno101
      @jeno101 6 месяцев назад

      @@letcode okay thanks got it.