How can I handle pop up message?

I used- ’ handle alert accept ’ to select the option ‘Allow’ . But I am getting an error message like ‘Alert not found in 5 seconds’. Can anyone help me to fix this error?

image

Not familiar with this myself but it seems you need to provide some arguments to the web driver to prevent this from appearing in the first place:

Also this thread seems to have a similar issue so perhaps the information there could help: