lundi 5 octobre 2020

Cypress- if statement - skip the part of test code if the element isn't available on the particular page

This code works perfectly when there is a tile element present on the page, but I am trying to run the same test on different pages. So, a few pages don't have a "tile" element tag. I am trying to find a way to skip this piece of code if the element isn't present. Thank you for taking the time out to look into it. HERE is the screenshot of the code

Aucun commentaire:

Enregistrer un commentaire