Cypress get(), find() and within() methods with Assertions - Part - 8

Sdílet
Vložit

Komentáře • 27

  • @Prakashchand-kf5hg
    @Prakashchand-kf5hg Před 3 lety +1

    Signature Line "lets run it". thank you Naveen Sir for saving many lives by your energy, knowledge and skills.

  • @TheDips16
    @TheDips16 Před 2 lety

    You are the best. Had seen other videos on Cypress but yours are the BEST!

  • @appansingharoy491
    @appansingharoy491 Před 4 lety +1

    It's amazing, like playing with the locators.Thanks much Naveen. Nicely explained.

  • @maheshkalagatta5364
    @maheshkalagatta5364 Před 3 lety +1

    Thanks @Naveen AutomationLabs. We could gain much knowledge on Cypress and related topics. Could you please make more videos on Cypress API and also on Framework part

  • @kailashpathak8906
    @kailashpathak8906 Před 4 lety +2

    Nice video Naveen Great Job.

  • @MrVinomaster
    @MrVinomaster Před 4 lety

    Great start

  • @im_me12
    @im_me12 Před 3 lety +3

    please provide the link to learn CSS concepts needed for cypress

  • @chandrashekharchoudhari447

    first viewer..

  • @LifeWithMeM-rv2ur
    @LifeWithMeM-rv2ur Před 4 lety +1

    Amazing

  • @priapundir1333
    @priapundir1333 Před 3 lety +2

    Hello Naveen, Could you please help me understand how to handle a date picker using Cypress?
    Currently, I am able to identify the field but not able to click on the calendar.
    Note: It is an Angular web application.
    Thank you!

  • @mayankjain9941
    @mayankjain9941 Před 4 lety

    Very nicely explained!!

  • @Saba556
    @Saba556 Před 4 lety +1

    Tq👍

  • @danr4826
    @danr4826 Před 3 lety

    @Naveen Should we ever make an assertion following cy.get(' ")? for instance using .should('be.visible') after we get an element, if we are able to get to the element why do we have to use this assertion?

  • @ahrimanglory8291
    @ahrimanglory8291 Před 4 lety +1

    Some more videos on Cypress. This is fun (){
    }

  • @sukanyachakraborty2893
    @sukanyachakraborty2893 Před 3 lety +1

    how to count length of dynamic elements ?

  • @vanichitraju6180
    @vanichitraju6180 Před 3 lety

    Hi Naveen
    It was really Helpful. And can you please help me how to handle/write code when Launching base URl it should redirect to the other URL. Once its navigated to the application where we will be testing the functionality. I tried navigating using cy.visit(URL). But when i ran my test its giving me the below Error.
    Can you please suggest how to handle this errors
    A cross origin error happens when your application navigates to a new URL which does not match the origin policy above.
    A new URL does not match the origin policy if the 'protocol', 'port' (if specified), and/or 'host' (unless of the same superdomain) are different.
    Cypress does not allow you to navigate to a different origin URL within a single test.
    You may need to restructure some of your test code to avoid this problem.
    Alternatively you can also disable Chrome Web Security in Chromium-based browsers which will turn off this restriction by setting { chromeWebSecurity: false } in cypress.json.Learn more

  • @venkateshgoud896
    @venkateshgoud896 Před 4 lety

    Does Cypress supports soft assertions ? If yes can you please explain those
    Thanks

  • @visalb6072
    @visalb6072 Před 2 lety

    can we give assertion for the type we give to the particular and how to do it

  • @nareshshama1982
    @nareshshama1982 Před 2 lety

    Scenario: i have test case in it block, i am asserting something, but i want to capture the error message due to assertion and let the script go ahead
    i do not want to fail my script and execute the next steps so how, can we do that ?

  • @kattiav.murillo6534
    @kattiav.murillo6534 Před 3 lety +1

    do u have more videos like this :) ?

  • @backbroathu2656
    @backbroathu2656 Před 2 lety

    Hello,
    In cypress I am trying to automate, columns of table is showing in asc/ Des order for both digit and alphabet
    And also one column having date format too 11/9/2020
    Could anyone please help me I can't find a solution anywhere
    Thanks

  • @danr4826
    @danr4826 Před 3 lety

    Hi Naveen, I was practicing using the within() method on support.freshdesk.com/support/home to type text into that search box field and kept getting an error that it returned to elements.
    it ('Searches within parent and types information', ()=>{
    cy.get('.hc-search-input').within(()=>{
    cy.get('input[id="support-search-input"]').type('cypress is great');
    });
    });
    From console log in that page I queried for all elements that might be using ('input[id="support-search-input"]')
    This returned two nodelists that's why I couldn't get it to work, but appears to reference the same exact field, or I'm not sure why would there be two elements using the same id in a page wouldn't it error out?
    I practiced the within() method following your approach using the Amazon page and it did work there.
    Appreciate the time you put into this videos, they are very helpful.

  • @9848578646
    @9848578646 Před 4 lety

    can we write all locators at page level and use them instead of writing in methods like this

  • @eswars2372
    @eswars2372 Před 3 lety

    Can you explain how to use assert in puppeteer