Iterate Over DOM Elements Using cy.each, jQuery each and map, and cypress-map Plugin Commands

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

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

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

    you are the best teacher ! thank you

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

    please make a video on cy.document and cy.window and what is the use of it and please make a video on stub from scratch ,please i am facing issue with stub

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

      I don't understand the question. You are having some problems with cy.document and cy.window and I should just start recording videos about it? Plus cy.stub? There are plenty of videos and blog posts about these topics that you can find via cypress.tips/search For anything more concrete, you need to explain your question in detail.

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

    So to sum up - if we iterate over jQuery object that has other jQuery objects inside the object is "upacked" and become HTML element. If we convert jQuery object to array we receive an array of jQuery objects with all jQ methods available - am I right?

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

      No. When you iterate over jquery using cy.map or mapInvoke you get raw DOM elements. For details see the recipe with these tests

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

    i hope you will give a response on it