Pick A Random Menu Link

preview_player
Показать описание
This video shows how to pick a random menu navigation link and click on it and check if we are navigating to the page.
'match',
/\/menu\/[a-d]\/index\.html/,
)
If you cannot use cypress-map plugin, you can still pick a random element using the following code:
.then(function ($a) {
})
.click()
Рекомендации по теме
Комментарии
Автор

Hi Gleb, Firstly.. Thank you so much sharing the knowledge.. Secondly need your help on this problem statement:

Can you please share an video of how to handle Okta based authrorization application during login where during login cypress uses one link and after that url redirection happens to another link where we have to login again..

Will be eagerly waiting for your response.

tejkumarkempaiah