How to read Javascript Alert message in UFT | QTP/UFT Forum
P
Pranab Kumar Ghatak Posted on 31/07/2020

I am getting a Javascript alert in my application which can not be captured by object spy. I need to read the text message in the alert.
How can I read text from Javascript Alert in UFT?


A
Ashish Thakur Replied on 02/08/2020

Browser("Browser").HandleDialog micOK


A
Ashish Thakur Replied on 02/08/2020

Browser("Browser").HandleDialog micOK


P
Pranab Kumar Ghatak Replied on 02/08/2020

Browser("Browser").HandleDialog micOK

The above answer is for clicking the OK button. I need to read the text in the javascript alert.

In Selenium, we can do that using alert.gettext().

How to do that in UFT?