Use cypress-recurse To Scroll The Page Until It Loads The Text We Are Looking For

Опубликовано: 22 Октябрь 2021
на канале: gleb bahmutov
6,132
79

In this video, I use cypress-recurse function to keep scrolling the page until we find the word "debug". We yield that found quote and highlight it. The same technique can be used to find an element on the paginated sites, or when the content changes on reload. Find the plugin at https://github.com/bahmutov/cypress-r... and the example test at