New in Playwright end-to-end testing: detect & close unpredictable overlays with "addLocatorHandler"

แชร์
ฝัง
  • เผยแพร่เมื่อ 26 ธ.ค. 2024

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

  • @connorginty
    @connorginty 9 หลายเดือนก่อน +6

    This is exactly what I needed for my tests! I’m so excited to implement this.

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

      Right? I've been waiting for a general solution to the "whenever it appears" problem, too. 🎉

  • @MaheshJoshi_wellington
    @MaheshJoshi_wellington 9 หลายเดือนก่อน +2

    Wow your every video on playwright is awesome !

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

      Thank you so much! Happy the videos have been valuable. 😊

  • @theillo4739
    @theillo4739 9 หลายเดือนก่อน +2

    Woooha, thanks for your content !

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

      Thank you for watching! 😉

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

    Awesome, thanks. I wish there would be more videos about playwright features. Thank you for investing in to community :)

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

      For sure - thanks for watching. 🦝 If you haven't discovered it yet, check out the Playwright Tips Playlist. :) You'll find all our Playwright videos there and there are many more to come. th-cam.com/play/PLMZDRUOi3a8NtMq3PUS5iJc2pee38rurc.html

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

    Thanks for the valuable content!

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

      Happy to! 😊

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

    Great content! Thank you very much.

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

      Thank you! Great it's been valuable! 😊

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

    Cool new feature and great explanation - thank you!
    Love Playwright 😇

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

    Thank you so much! It has solved our pain 🤩

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

      Yay - happy to hear that!

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

    Good stuff. Thanks for another useful video :-).

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

      Thank you! Happy the videos are valuable. 😊

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

    @checkly what if we have multiple pop-up in our flow. do we need to write addLocatorHandler for each pop-up. Ex: One pop-up having text "give feedback", second pop-up having test "rate-us"

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

      Based on my understanding from the docs, if each pop-up can be located with some kind of general selector or custom attribute for all pop-ups, one handler with some conditions should be enough for both cases.

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

      I haven't tested it but I think it depends. Either you can have multiple `addLocatorHandler` or you generalize the popups to all have the same id or something.
      Both approaches should work, but generalizing might not always be possible. :)
      Hope this helps!

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

    I've started to implement this approach in the project to catch random error alerts(but the problem is there can be more than 1 on the page simultaneously). So, probably can you give an idea if it is possible to catch 2+ elements of similar kind? For now I've resolved by catching the first() element. But all - would be much better ))

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

      Hmm, this is a great question that I don't have an answer to right now. But I'll put it on "the investigation list" and there might be a future video about it. :)

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

      @@ChecklyHQ Many thanks! Will keep an eye on your posts ))

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

    Instead of using in individual test, can we use this method in before All/before each or set a listener using page.on and implement this method inside the listener?

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

      Re: "can we use this method in before All/before each" - I didn't test it but this should work.
      Re: event listener - I'm not sure. Which event listener do you want to use?

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

      Yes, It works in beforeEach

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

    that's awesome, playwirght is the best

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

      Totally agreed. 🫣 It gets better with every release. 💪