How to handle a pop up with only <x> button using cypress?

548 Views Asked by At

enter image description hereHow to close the pop up with only in the pop up using cypress?

1

There are 1 best solutions below

0
On

Right click on the button and choose "Copy Selector" and you can use the class or the data-dismiss to select the element and .click on it with Cypress.