Тёмный

Cypress Automation Tutorial for beginners Multiple Element Interaction part 8 

Cope Automation
Подписаться 6 тыс.
Просмотров 9 тыс.
50% 1

Cypress Automation Tutorial for beginners - This video demonstrates how to interact with multiple elements including it's length, assert based on partial text and so on
Description:
In general, this Cypress Automation Tutorial for beginners series demonstrates how Cypress can be used to Automate E2E Tests including unit, integration and even tests that can be done outside of the browser e.g. database connection, test data set up using stub and mock servers using Node.JS.
Cypress is built on JavaScripts(Node.Js) framework and embedded with existing well known frameworks and tools including Mocha, Chai libraries which makes it easier to adopt and use them.
As you watch this series you will realize that how easy and quick it is to automation web, particularly with some of the modern JavaScript based web development frameworks such as React / React Native.
Cypress is often compared with Selenium or any other Web automation tools such as Puppeteer and so on. But cypress is fundamentally different from other tools as the way it interacts with Web is totally different. Unlike the page object model, Cypress provides in-built framework structure which can be customized according to project needs.
Cypress also support API tests under the hood which makes it different from other tools.
For other videos refer to the following links:
Cypress installation and project set up: • Cypress Tutorial for B...
Cypress understanding project structure Test runner: • Cypress Tutorial for ...
Cypress code completion intellisense: • Cypress Tutorial for B...
Cypress running the first tests: • Cypress Tutorial for B...
Cypress - Understanding selectors strategy: • Cypress Tutorial for B...
Cypress - Web interactions including dropdown and checkboxes: • Cypress Tutorial for b...
Cypress - Handling alerts including alert, prompt and confirm types: • Cypress Tutorial for b...
Cypress - Interacting with list of elements: • Video

Опубликовано:

 

18 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 22   
@MonuSharma-sx1wb
@MonuSharma-sx1wb Год назад
First time I understand each with multiple conditions. THANKS
@ishouldtestit8904
@ishouldtestit8904 2 года назад
Finally i understand how to handle multiple elements
@yashadattadeo
@yashadattadeo 3 года назад
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 RU-vid
@CopeAutomation
@CopeAutomation 4 года назад
Thank you :)
@herickmota9357
@herickmota9357 3 года назад
Thank you!!! It was very clear and detailed. I was looking exactly for this solution. :)
@Henchman0077
@Henchman0077 3 года назад
Brilliant
@shruthiexcelsoft9053
@shruthiexcelsoft9053 2 года назад
Thanks much🙏
@humanhealth8303
@humanhealth8303 3 года назад
A M A Z I N G !
@dweepbhowmick5903
@dweepbhowmick5903 2 года назад
please create a framework video (page object mode pattern)
@jacoby8934
@jacoby8934 4 года назад
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 года назад
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 года назад
Nice video, very useful .Can we have your mail-id for some clarification regarding cypress
@Pingsmingu
@Pingsmingu 6 месяцев назад
Can you please leave the previous code as is. Don’t overwrite
Далее
Cypress Web Table Interactions - Part 9
24:38
Просмотров 9 тыс.
Cypress Automation Tutorial   File Upload Part 11
24:40
⚡ #RodrygoGoes ✖️ #Mbappé ⚽ #UCL
00:11
Просмотров 515 тыс.
Inside Out 2: BABY JOY VS SHIN SONIC
00:19
Просмотров 5 млн
All about cypress contains() method to locate elements
19:55
Cypress Automation Tutorial   Handling iFrames Part 10
13:17
Cypress Custom Commands by @bartoszkuczera
49:32
Просмотров 2,8 тыс.
⚡ #RodrygoGoes ✖️ #Mbappé ⚽ #UCL
00:11
Просмотров 515 тыс.