'How can I get the question title of the popup("Open Pick an app?) when I click a phone number link?

When I click a link corresponding to a phone number in Chrome, a browser featured popup is prompted asking for Open Pick an app?, I would like to obtain this text to identify that the popup has appeared and the phone number link has been clicked.

I work with selenium but it does not detect this popup. I tried with AutoIt and this also did not detect it, so I would like to try it now directly with JavaScript but I don´t know exactly the syntax.

How can I get the question title of the popup("Open Pick an app?) or detect the popup has been opened with JavaScript code? taking in account the situation.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source