Cypress Automation Tutorial for beginners Multiple Element Interaction part 8

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

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

  • @MonuSharma-sx1wb
    @MonuSharma-sx1wb ปีที่แล้ว

    First time I understand each with multiple conditions. THANKS

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

    Finally i understand how to handle multiple elements

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

    By far the best video. All the examples taken here are practical! Keep up the good work!

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

    Thank You. It was helpful to a newbie like me to cypress.

  • @syedkhaja9510
    @syedkhaja9510 4 ปีที่แล้ว

    Glad to see you back on TH-cam

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

    Thank you!!! It was very clear and detailed. I was looking exactly for this solution. :)

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

    A M A Z I N G !

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

    Thanks much🙏

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

    Brilliant

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

    please create a framework video (page object mode pattern)

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

    Thanks for the video! that was very useful.
    comment and question if i may.
    question: once configured the if statement, how can i proceed to do assertion for example, or go back? (i know how to just not sure where the command should be placed).
    comment: you dont really need to third argument in the each() method. this will work as well.
    cy.get('.inventory_item_name')
    .should('contain.text', 'Sauce Labs')
    .each(function ($el, index) {
    if (index == 2) {
    $el.click()
    }
    overall very good video!

    • @CopeAutomation
      @CopeAutomation  4 ปีที่แล้ว

      Hi
      Thanks. I get your comments part but not the question. You may need to elloborate a bit

    • @jacoby8934
      @jacoby8934 4 ปีที่แล้ว

      @@CopeAutomation I'll try to rephrase.
      Once added if statement and clicked on the matching element but now I want to go back to the main page, correct me if I'm wrong, I need to start new cy.get and not perform it in the if statement. Correct?

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

      That's right. Also depends on the click event on where it leads to. So according you can proceed to next step or if you need to go back use cy. get

    • @jacoby8934
      @jacoby8934 4 ปีที่แล้ว

      Thanks! That's what I thought.
      Any chance making video about cypress reports with mochawesome or mocha - allure? If so, that will be VERY much appreciated.

  • @RiteshPradeep
    @RiteshPradeep 4 ปีที่แล้ว

    It was such a nice video, but I have a question, how can I select the first 50 elements we have some 250 matching element. I need to have all those first 50 elements to be stored in an array

    • @CopeAutomation
      @CopeAutomation  4 ปีที่แล้ว

      Hey
      Thanks. Loop through the array using standard for loop and select the index from 0-49. That's what you are after?

    • @RiteshPradeep
      @RiteshPradeep 4 ปีที่แล้ว

      @@CopeAutomation yeah i tried the same way but was getting error, if you don't mind could you please send a sample code for same?

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

    Nice video, very useful .Can we have your mail-id for some clarification regarding cypress

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

    Can you please leave the previous code as is. Don’t overwrite