How to handle alerts,pop-ups and non web page using this tool?

Correct, dialog buttons are best clicked in desktop automation mode. Here is a good example: Stupid issue about pop up windows when download files - #2 by Plankton