The Popup Dialogs from Web application are identified as WinObject in Chrome.
Currently, in order to click in the dialog popup in Chrome User needs to use the below workarounds:
1. SendKeys – To press the OK button always selected by default in the Pop-up
Set obj = CreateObject("WScript.Shell") ‘ Creates object we can use to call SendKeys
Set obj = Nothing ‘ destroys object (no longer needed once typing is done)
2. Recording on the dialog with no add-ins
a. Load QTP with no add-ins
b. record the click operation
c. Load QTP with web add-in
d. Set the relative coordinates for the buttons in the dialog box to press:
Note: Ensure that both windows has the require object properties to be identify in chrome (change between chrome and IE).
3. Low Level Recording.
4. Insight Feature (Image based testing) – Only for UFT 11.50