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?
Instructor
Ashish Thakur Replied on 02/08/2020
Browser("Browser").HandleDialog micOK
Instructor
Ashish Thakur Replied on 02/08/2020
Browser("Browser").HandleDialog micOK
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?