The application, which I have to automate, is completely inside an iframe.
To continue, I used cypress-iframe
plugin.
However, when I am trying to chain the commands of cypress-drag-drop
or cypress-if
over cypress-iframe
, its returning the following error:
cy.iframe(...).find(...).should(...).if is not a function
Here's the script that's throwing the error:
cy.iframe('#iframeID').find('#checkboxLocator').should('be.visible').if('not.checked').check();
Is there any solution to it?