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
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!
@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?
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
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 ?
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
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.
Signature Line "lets run it". thank you Naveen Sir for saving many lives by your energy, knowledge and skills.
You are the best. Had seen other videos on Cypress but yours are the BEST!
It's amazing, like playing with the locators.Thanks much Naveen. Nicely explained.
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
Nice video Naveen Great Job.
Great start
please provide the link to learn CSS concepts needed for cypress
first viewer..
Amazing
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!
Very nicely explained!!
Tq👍
@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?
Some more videos on Cypress. This is fun (){
}
i like this.comment ;
how to count length of dynamic elements ?
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
Does Cypress supports soft assertions ? If yes can you please explain those
Thanks
can we give assertion for the type we give to the particular and how to do it
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 ?
do u have more videos like this :) ?
Hi, it's a full series. Please watch it all cypress videos.
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
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.
can we write all locators at page level and use them instead of writing in methods like this
Yes, possible. That is Page Object Model (POM).
Can you explain how to use assert in puppeteer