Handling new tab in Cypress using Invoke method

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

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

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

    Hello, is there an example on the "javascript redirect" option. That is what I am working with with my automation project. Thanks

  • @saurabhkumar-bo4cr
    @saurabhkumar-bo4cr 6 หลายเดือนก่อน +1

    Great video ...🎉
    How to handle payment window ?

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

    The all scenarios mentioned like target, open window, replace nothing present in ,
    In my case it just has a button tag, tabindex=0, data-textid=xyz and when I'm clicking on xyz button it opens on a new tab

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

      Pls help on tis kind of scenario

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

    Thank you so much man🥰🥰🥰.,it's straight forward and really helpful for new beginners

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

    Thanks Bro
    Any list I can refer which will show the various invoke

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

      Ya, I added the link in description - glebbahmutov.com/blog/cypress-second-tab/

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

    very good explanation , very straight to the point .

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

    Hello Bro
    Do you have a full cypress class in Udemy or anywhere

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

      Not yet but you can watch this Cypress Series - th-cam.com/play/PL6AdzyjjD5HAr_Jq1hwpFUIO49uyBZ9ma.html

  • @ThuTran-ys6or
    @ThuTran-ys6or 2 ปีที่แล้ว

    in my website, element (which i need click) does not have attribute target ="_blank" ( it is div element). Can you suggest resolve to me ?

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

      In that case, its probably opening in the same tab then. So you can directly click and access it.

    • @ThuTran-ys6or
      @ThuTran-ys6or 2 ปีที่แล้ว

      @@sdetunicorns when i click on it, it open a new tab. I cannot open in the same tab, my test scripts cannot contiue

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

      @Thu Trần having the same problem, no idea how to handle it because it does open in the new tab

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

    Hi Dilpreet, do you have a 10 dollar coupon for your Playwright course?

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

      www.udemy.com/course/playwright-complete-beginner-course/?couponCode=PW-SPECIAL-15
      Here you go, it expires today.