Playwright Fixtures | Playwright Tutorial - part 34

แชร์
ฝัง
  • เผยแพร่เมื่อ 3 ม.ค. 2025

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

  • @karthic5231
    @karthic5231 3 ปีที่แล้ว +1

    ji.you are the really hard and smartworker..i seen around 40 videos of you making...their was a lot of things you explained neatly keep it up and good job koushik bro.you took a right topic at the right time.microsoft gives a other wonderful framework..we expect more video for advanced topics...send mail with attached report for stackholder for sanity or regress test using palywright is the final touch gives your video more meaning ful..thanks bro

  • @dand4485
    @dand4485 ปีที่แล้ว +1

    Around the 12:30/13:00 minute mark, believe the thing tripping you up why you don't see the "is it passed" + info.status. Think you want assert.soft(). I'm sure you know this now, others just getting into PW, making this comment more for them. I think 2 years ago is when the .soft() came in for exceptions and when you did the video you knew of it, just not so familiar as i bet it is now for you... 😎 Koushik, always found you're videos a great resource, never have done much with fixtures, didn't know a better place to learn them from :)

    • @letcode
      @letcode  ปีที่แล้ว

      Thanks 😊,
      Yes I am aware of soft assert, I have posted a video on that too.

  • @maopuerta3430
    @maopuerta3430 3 ปีที่แล้ว +1

    The best framework. Playwright.
    Thanks

    • @letcode
      @letcode  3 ปีที่แล้ว

      Welcome 🤗

  • @classicneed5460
    @classicneed5460 3 ปีที่แล้ว +1

    Long way to go bro, All the best 🙏

    • @letcode
      @letcode  3 ปีที่แล้ว

      Thank you ☺️

    • @classicneed5460
      @classicneed5460 3 ปีที่แล้ว +1

      Your sincerely collage mate from chepauk

    • @letcode
      @letcode  3 ปีที่แล้ว

      Ahh... Name?

    • @classicneed5460
      @classicneed5460 3 ปีที่แล้ว +1

      @@letcode never mind 🤘

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

    Hi
    Is there any way to share global variables between two tests like i want to declare a variable globally and i want to initialise in first test and i want to use that variable in test 2 even test one failed

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

      Yes, you can use the node process to set and get value,
      I usually prefer to write in a json file and read.

  • @DipeshPatel-vq5ck
    @DipeshPatel-vq5ck ปีที่แล้ว +1

    Can we use fixture and beforeEach hooks together?
    e.g fixture to create page instances and before hook to register a user

    • @letcode
      @letcode  ปีที่แล้ว

      Yes I guess

    • @DipeshPatel-vq5ck
      @DipeshPatel-vq5ck ปีที่แล้ว

      the reason i asked as i am getting an error as page to register a user in beforeEach section closes once the last line executed in the beforeEach. In the beforeEach i have used page object instances through fixtures
      Hence the first line of the test is failing a there is no browser.
      Error: locator.hover: Browser has been closed

  • @johncyvarghese9136
    @johncyvarghese9136 ปีที่แล้ว +1

    Is there any video on how to automate the pagination using the looping statements in playwright with Typescript?

    • @letcode
      @letcode  ปีที่แล้ว

      I have covered the web table concepts, you refer to those videos.

  • @faizaaslam5662
    @faizaaslam5662 3 ปีที่แล้ว +2

    Why are we not compiling typescript into js?

    • @letcode
      @letcode  3 ปีที่แล้ว +1

      We are using ts-node in package.json.
      That will do the compilation before execution so we don't have to.

  • @amruthakumari1274
    @amruthakumari1274 2 ปีที่แล้ว +1

    Hi Kaushik, am getting this error Playwright Test did not expect test() to be called here.
    Most common reasons include:
    - You are calling test() in a configuration file.
    - You are calling test() in a file that is imported by the configuration file.
    - You have two different versions of @playwright/test. This usually happens

    • @letcode
      @letcode  2 ปีที่แล้ว

      You might be using 2 versions of playwright.
      Delete node modules and in package
      json file add only the latest version of playwright.

  • @tanujlakshakar8473
    @tanujlakshakar8473 3 ปีที่แล้ว +1

    Could you please explain about what exactly it is and how does it work
    type koushik = {hey: string}
    If possible could you please create a separate video for us

    • @letcode
      @letcode  3 ปีที่แล้ว

      Sure bro , I'll do it

  • @damayantiphand7730
    @damayantiphand7730 2 ปีที่แล้ว +1

    Hi Kaushik,
    First of all, Thank you for great videos on playwright.Could you please make some videos on Cucumber playwright

    • @letcode
      @letcode  2 ปีที่แล้ว

      Hi, i don't use any useful features in cucumber compared to playwright test runner.
      Like the retry, video , screenshot and others.

  • @andreaskarz
    @andreaskarz ปีที่แล้ว +1

    Sorry, it's a nonsense example. Why you not make an example to click a cookie banner away?

    • @letcode
      @letcode  ปีที่แล้ว

      Fixture is not used to click a cookie banner.