Advanced Web Automation JavaScript / TS Course. Lesson 3 Playwright Installation, Running first test

แชร์
ฝัง
  • เผยแพร่เมื่อ 13 ก.ย. 2024

ความคิดเห็น • 37

  • @IlarionHalushka
    @IlarionHalushka  9 หลายเดือนก่อน

    Try to find internal motivation and install all these tools. Usually it takes 1-2 hours if you do this for the first time.

    • @IlarionHalushka
      @IlarionHalushka  9 หลายเดือนก่อน

      Bash commands used in this video:
      touch - create a file.
      mkdir - create a folder.
      cp - copy a file or a folder.
      rm - deletes a file or a folder.
      mv - rename a file or a folder.
      ls - list files and folders.
      cd - navigate between folders. ("cd .." navigates 1 level up)
      tree - list files and folders in a tree view. ("tree -L 2" shows files&folders 2 levels deep.)

    • @IlarionHalushka
      @IlarionHalushka  9 หลายเดือนก่อน

      39:00 In order to be able to push your local files(commits) to a remote repository (github) you need to login to git from your terminal.
      Instructions:
      1. Download and install GIT git-scm.com/downloads
      2. Set your user name in git from terminal: git config --global user.name "Mona Lisa"
      3. Set your email in git from terminal: git config --global user.email "YOUR_EMAIL"
      4. Create a personal access token on github.
      1. Go to official docs docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#creating-a-personal-access-token-classic
      2. OR find a step-by-step tutorial on google: www.google.com/search?q=github+generate+access+token
      5. Copy personal access token from github.
      6. When you try to push your commits to github, git asks for a password in the terminal -> paste your personal access token (NOT github password!).

    • @J.C.V.D
      @J.C.V.D 8 หลายเดือนก่อน

      @@IlarionHalushka Excellent clarifications👌

  • @klimtro
    @klimtro 7 หลายเดือนก่อน

    Its so difficult to find a good lesson for Playwright. Thanks a lot!

    • @IlarionHalushka
      @IlarionHalushka  7 หลายเดือนก่อน

      🤜🤜🤜 thank you for your feedback!

  • @littlebird6415
    @littlebird6415 8 หลายเดือนก่อน

    My dear teacher thx for everything

    • @IlarionHalushka
      @IlarionHalushka  8 หลายเดือนก่อน

      Thanks for your support! 🤜

  • @VitaliiVitalii-kw1mj
    @VitaliiVitalii-kw1mj 7 หลายเดือนก่อน

    комент для підтримки)

  • @user-wv9xs6rw1j
    @user-wv9xs6rw1j 8 หลายเดือนก่อน +1

    Ilarion, thanks for this video and special thanks for the link to the JavaScript Tutorial. I'm a newbie and it's very important for me to read the documentation, but I can't always find a good source

    • @IlarionHalushka
      @IlarionHalushka  8 หลายเดือนก่อน

      Thank you for the constant support!)
      btw, if you find reading JavaScript tutorials hard or boring you can try to find some online exercises (something like sqlbolt but for js).
      I haven’t used but heard a lot about www.codecademy.com/learn/introduction-to-javascript

    • @user-wv9xs6rw1j
      @user-wv9xs6rw1j 8 หลายเดือนก่อน

      @@IlarionHalushka Thank you very much for the link! This will be a great addition while I'm waiting for your video)))

  • @__Name_It__
    @__Name_It__ 7 หลายเดือนก่อน

    A comment to support the channel, thank you Ilarion. It's priceless.

  • @omgxd915
    @omgxd915 9 หลายเดือนก่อน +1

    Guys, DON'T forget to smash LIKE button !
    It's really hard to find content like THIS !

    • @IlarionHalushka
      @IlarionHalushka  9 หลายเดือนก่อน +1

      Thanks for your support 🤜 🤜

  • @J.C.V.D
    @J.C.V.D 8 หลายเดือนก่อน

    2.15 am: I have some fun😄

  • @rococo312
    @rococo312 8 หลายเดือนก่อน

    Hi, thank you again for all the vidoes.
    How relevant can this be if I am in a position of manual mobile QA(games). How relevant would the knowledge and experience be in case I want to move to web AQA ? Or is it better to go deeper into mobile AQA?

    • @IlarionHalushka
      @IlarionHalushka  8 หลายเดือนก่อน

      Thank you! Good question.
      I know that game automation is really hard and usually it's not worth spending way too much time trying to automate a mobile game.
      The basic concepts of test automation are the same no matter which platform you are testing.
      So ask yourself whether you ever gonna change the project/company and start testing web. Kind of become fullstack qa :)
      I see many job openings that require both web+mobile.

    • @IlarionHalushka
      @IlarionHalushka  8 หลายเดือนก่อน +1

      Also you can check the current state of the job market to see what's in demand - web aqa or mobile aqa or maybe "fullstack" aqa.
      But again, it all comes down to the same basic concepts and in the end automation is - prepare test date, do an action, write an assertion. When you grow in this field and become a senior - you stop caring about the platform for which you write tests or the test framework or even language. These things change - basic concepts don't.

    • @rococo312
      @rococo312 8 หลายเดือนก่อน

      @@IlarionHalushka Thanks for the reply, actually the desire to automate some tests is great for companies, but they just either don't have the tools or the money to implement.
      If you interview for AQA in JS, do they mostly ask questions regarding automation? Or do they just ask you as a regular programmer in that language

  • @vasylvonshpyra4848
    @vasylvonshpyra4848 6 หลายเดือนก่อน

    Ok ok ok. Toggle inline chat icon is missing in my VS code. What do you have AI extensions?

    • @IlarionHalushka
      @IlarionHalushka  6 หลายเดือนก่อน

      Yep, you'll see in the next videos that I have an amazing autocoplete from Github copilot. Just love it.
      Interestingly enough, I haven't found a good use for the "Toggle inline chat" functionality. In demos they show that it can explain the code but I can read the code myself lol.
      As of now, it costs 10$ a month. If you already have a job Copilot totally worth its money and saves a ton of time. Highly recommend.
      btw, it has a 30 day free trial.

  • @worldismine3565
    @worldismine3565 7 หลายเดือนก่อน

    Привет, подскажи пож, не понимаю делаю всё также последовательно как и ты на видео но тесты не валятся почему-то а всегда проходят,может быть где-то не сохраняюсь?

    • @worldismine3565
      @worldismine3565 7 หลายเดือนก่อน

      Уже разобрался)

    • @IlarionHalushka
      @IlarionHalushka  7 หลายเดือนก่อน

      cool, this is called experience :) @@worldismine3565

  • @pavel_arabadzhy
    @pavel_arabadzhy 9 หลายเดือนก่อน

    Thanks for the new video! Why almost everyone uses VS code to write tests on js/ts ? I tried IDE WebStorm from JetBrains, and I find it more convenient, and by the way it has WebInspector tool that generates not bad locators (css/xpath).

    • @IlarionHalushka
      @IlarionHalushka  9 หลายเดือนก่อน

      Thank you 🤜 Good question. I always use webstorm at work but there are a few reasons why I am using VS Code for this course.
      1. It’s free. Webstorm costs money. Most of the people who want to learn automation are usually not ready to invest 150$ a year.
      2. VS Code (developed by Microsoft) has a great support of playwright (also by Microsoft). When new playwright features are released they will be released for VS Code, not Webstorm.
      3. Official docs target vs code. Developers on playwright TH-cam channel use vs code.

    • @IlarionHalushka
      @IlarionHalushka  9 หลายเดือนก่อน

      Thanks! Didn’t know about the webinspector. I prefer old school chrome dev tools elements 😅 and generating locators by id, test id, or accessibility labels. If I don’t have such locators I go to the source code and add just them ✅
      I feel like using id/testid/accessibilitylabel is the best way to make tests stable.
      In the next videos you will see how playwright recorder generates locators and assertions. It’s 🔥 Better don’t wait for the video and go check it out on official docs :)

    • @pavel_arabadzhy
      @pavel_arabadzhy 9 หลายเดือนก่อน

      @@IlarionHalushka Yes, as far as I know asserts were added to the recorder recently, I've already tested ;) Really cool thing playwright’s codegen !

    • @pavel_arabadzhy
      @pavel_arabadzhy 9 หลายเดือนก่อน

      @@IlarionHalushkaGot it, thanks for explaining

    • @IlarionHalushka
      @IlarionHalushka  9 หลายเดือนก่อน

      100% great tool. But 1 thing I don't like about this recorder/codegen is that it often generates locators by Text+Accessibility Role.
      From my experience locators by text are not stable. Currently I am working on a project where Product team constantly updates some text, button labels, etc. They just go to contentful and change the values.
      I wish playwright codegen gave an ability to choose the priority of auto-generated locators to be able to prioritise id and test-id over Text+Accessibility Role. @@pavel_arabadzhy

  • @user-lq7jv1do8s
    @user-lq7jv1do8s 9 หลายเดือนก่อน