Issue
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
Please help me out. Thanks in advance.
Solution
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.
Answered By - Kamil Abdurahim
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.