i have a functionality in the app, where I need to click ‘Create folder’ button, then modal popup appears, where I can enter a name and submit or cancel.
It cannot be inspected, i cannot get any locators . How can i handle this with cypress?
i tried using this as I used similar method for uploading files:
addFolder(folderName) {
cy.get(this.addFolderButtonLocator).click({ force: true });
cy.get('input[type=text]').type(folderName).type('{enter}');
return this;
}
But it gets stuck on dialog and test never fails or ends.
New contributor
Alex Y is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
2