Тёмный

Working with Multiple Elements in Cypress | .each() | Cypress Testing 

SDET Unicorns by Dilpreet Johal
Подписаться 13 тыс.
Просмотров 16 тыс.
50% 1

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

 

11 сен 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 28   
@sdetunicorns
@sdetunicorns Год назад
Cypress Playlist - ru-vid.com/group/PL6AdzyjjD5HAr_Jq1hwpFUIO49uyBZ9ma Check out all the Courses - bit.ly/3SBTtKb Join Mailing List - bit.ly/3Nc9Ewx If you like this video, make sure to subscribe to the channel and share this video :)
@S4NTIS0
@S4NTIS0 7 месяцев назад
great content and to the point!
@semihcetin5122
@semihcetin5122 2 года назад
Hi how can ı click to one of them ? randomly
@humanhealth8303
@humanhealth8303 3 года назад
amazing channel.
@itshamiiid
@itshamiiid 2 года назад
thanks
@sdetunicorns
@sdetunicorns Год назад
Glad you enjoyed the content. We have created multiple courses that takes our students from ground level. If you want to become a full stack Automation engineer, Please check out the academy at: sdetunicorns.com/courses/
@VinodPatelC
@VinodPatelC Год назад
Hi, your video is very useful. it is working for menu item list, but i have the drop down with select , option tag. so need to change anything in above code.
@rahiyansafin449
@rahiyansafin449 2 года назад
hey! your videos are too much helpful, but could you kindly help how to click on every items of the link and go to the expected urls?
@spidyniks
@spidyniks Год назад
@marchbaby2431
@marchbaby2431 2 года назад
how to iterate through multiple 'select' list having option..thanks
@krumkostov9710
@krumkostov9710 Год назад
Hi, Which visual studio extensions do you use for writing Cypress tests?
@sdetunicorns
@sdetunicorns Год назад
ES6 snippets lets me generate describe and it blocks quickly
@avas9406
@avas9406 10 месяцев назад
Hello , I have a problem , what if I want to compare , between two elements from the list , for example if the list contains dates, and I want to see if each date is greater than the next one ? Thank you ! @sdetunicorns
@samundradhakal2363
@samundradhakal2363 3 года назад
When i tried the same, it just runs once when I have 5 items in the array. Do you know why?
@sdetunicorns
@sdetunicorns 3 года назад
Try comparing your code with this file to make sure you didn't make any mistakes - github.com/automationbro/cypress-tests/blob/master/cypress/integration/specs/home.spec.js
@cwp888
@cwp888 2 года назад
Hi how can I choose one to click on?
@sdetunicorns
@sdetunicorns 2 года назад
within .each function, you can select which element you need to click on
@ShrmaShiva
@ShrmaShiva 2 года назад
What is the use of $(item) at 7:46??
@sdetunicorns
@sdetunicorns 2 года назад
$(item) is returning each individual elements from a set of multiple list and then i am doing a .text on it to get the text value
@UdayKiran-bw9nh
@UdayKiran-bw9nh 2 года назад
How to get size of a list and save it in var ( like in selenium) . int count = driver.findelements(by.xpath(...)).size();
@sdetunicorns
@sdetunicorns 2 года назад
You can do this - const elLen = Cypress.$(el).length;
@UdayKiran-bw9nh
@UdayKiran-bw9nh 2 года назад
@@sdetunicorns Thanks bro. It worked 🙂
@farazmazhar7656
@farazmazhar7656 3 года назад
what is you don't know the length of the list the list is dynamic, everytime it is called on a different page different lists are coming how can we iterate through that? can you please make a video with unknown number of fields
@sdetunicorns
@sdetunicorns 3 года назад
the iteration would still be the same as we don't care how long the list is, you can still do .each on it and do anything the items you get back from the list.
Далее
Working with Form Input fields in Cypress
21:47
Просмотров 10 тыс.
Cute
00:16
Просмотров 5 млн
ГИГАЧАД МЭЙКЕР В PLANTS VS ZOMBIES 2!
00:49
Cypress Assertions | should, expect | Cypress Testing
9:33
Cypress Commands (Get, Click, Find) | Cypress Testing
15:28
All about cypress contains() method to locate elements
19:55
Cypress Tutorial - Writing E2E Tests For Your Apps
46:05
Cute
00:16
Просмотров 5 млн