Top 40 Cypress Interview Questions & Answers 2025 | Cypress Interview Questions | FAQs | MindMajix

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

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

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

    Thank you sir.

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

    I went back to watch other videos to understand what is the correct pronunciation of cypress like it is cp press or sy press. Questions are really good but the answers are confusing... Sorry for the negative comment but this what I feel. What do you mean by web packed monitor at 9:33? I didn't use any third party tool to select the element using class or id at 9:47 how can it only supports css this is incorrect. I also search in other websites and cypress documents
    Cypress supports a wide range of selectors, making it easy to target specific elements on your web pages. Here's a breakdown of the most common ones:
    Basic Selectors:
    - ID Selector: #elementId - Selects an element with the given ID.
    - Class Selector: .className - Selects all elements with the given class.
    - Tag Selector: tagName - Selects all elements with the given tag name (e.g., div , button , input ).
    - Attribute Selector: [attribute="value"] - Selects elements with the specified attribute and value.
    - Example: [data-test="my-element"]
    - Universal Selector: * - Selects all elements on the page.
    Combined Selectors:
    - Descendant Selector: ancestor tagName - Selects all elements with the given tag name that are descendants of the specified ancestor.
    - Example: div li - Selects all li elements within a div .
    - Child Selector: parent > child - Selects direct children of the specified parent.
    - Example: div > p - Selects all p elements that are direct children of a div .
    - Sibling Selector: element ~ sibling - Selects all siblings of the specified element.
    - Example: input ~ label - Selects all labels that are siblings of an input element.
    Other Useful Selectors:
    - nth-child Selector: tagName:nth-child(n) - Selects the nth child of the parent.
    - Example: li:nth-child(2) - Selects the second li element within its parent.
    - nth-of-type Selector: tagName:nth-of-type(n) - Selects the nth element of its type within its parent.
    - Example: input:nth-of-type(2) - Selects the second input element within its parent.
    - Contains Selector: [attribute*="value"] - Selects elements with an attribute that contains the specified value.
    - Example: [href*="google.com"] - Selects all elements with an href attribute containing "google.com".
    Cypress-Specific Selectors:
    - cy.get() : The most common selector in Cypress. It uses the same selectors as jQuery and accepts any valid CSS selector.
    - Example: cy.get('#my-element')
    - cy.contains() : Selects elements that contain specific text.
    - Example: cy.contains('Submit')
    - cy.has() : Selects elements that contain a child element matching the given selector.
    - Example: cy.get('ul').has('li:first-child')
    - cy.next() and cy.prev() : Selects the next or previous sibling element.
    - cy.parent() and cy.children() : Selects parent or child elements.
    Tips:
    - Use cy.get() as your primary selector: It's versatile and supports most CSS selectors.
    - Prioritize data-test attributes: For testing purposes, add data-test attributes to your elements for easier selection.
    - Use cy.contains() for text-based selection: It's a great alternative to cy.get() for elements that contain specific text.
    - Combine selectors for specificity: Use multiple selectors to narrow down your search and target the exact element you need.

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

    Very very useful team , please make more of such videos 🙏

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

    We may need to do some updates in the video 1.is also used for API testing 2.two types are assertions implicit and explicit

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

    Thankyou sir giving wonderful questions and answers..

  • @shivaniHedau-pn9se
    @shivaniHedau-pn9se 8 หลายเดือนก่อน

    Thank you sir.

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

    Custom commands can be created in explicit assertions right.....

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

    Overall very useful. Question 39 for preserving cookies is removed from newer version of cypress. Do you have latest solution for that? Thank you

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

    Xpath plugin is no longer supported

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

    Cypress does not support iFrames ???

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

    cypress support 😀

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

    Not able to see the video

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

      Hello, Video is good from our side, please refresh the page from your end. Thank you.

  • @shivaniHedau-pn9se
    @shivaniHedau-pn9se 8 หลายเดือนก่อน

    Thank you sir.