I have a scenario if cy.get(`span:contains("${objT...
# e2e-testing
p
I have a scenario if cy.get(
span:contains("${objText}")
).parents('div[class^=sc-]').find('input') this element is visible on UI then return the same or else return cy.get(
span:contains("${objText}")
).parents('div[class^=sc-]').find('Span') how can I write a code using cypress-if plugin? Please note objText I am passing as an argument in the cypress command