Home > OS >  I'm not able to handle a confimation box for delete
I'm not able to handle a confimation box for delete

Time:09-16

I have clicked on the ellipses shown in the screenshot attached and a delete confirmation box prompts and I tried to confirm that using switch_to.alert.accept() function but error is thrown with

selenium.common.exceptions.NoAlertPresentException: Message: no such alert exception.

Screenshots for the confirmation box and error thrown is attached below: Confirmation box for delete

Error thrown

Please help me out. Thanks in advance.

CodePudding user response:

As far as I can see it's not an alert but a part of the webpage. You have to use find_element() to get the button and click it.

  • Related