QTP/UFT does not recognize Popup Dialogs in Chrome Browser

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

wait 2

Set obj = CreateObject("WScript.Shell") ‘ Creates object we can use to call SendKeys

obj.SendKeys "{ENTER}"

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:

Window("Browser").Window("mywindow").click 290,83

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

Advertisements

3 thoughts on “QTP/UFT does not recognize Popup Dialogs in Chrome Browser

    1. michael

      —————————————————————————
      1.Handling Dialog

      Browser(“browser_name”).HandleDialog micOk
      or
      Browser(“browser_name”).HandleDialog micCancel

      2.Getting text in Dialog

      Dim dialoText
      dialogText = Browser(“browser_name”).GetDialogText

      —————————————————————————

      This should work in chrome, too.
      Try it.

      Reply
  1. michael

    —————————————————————————
    1.Handling Dialog

    Browser(“browser_name”).HandleDialog micOk
    or
    Browser(“browser_name”).HandleDialog micCancel

    2.Getting text in Dialog

    Dim dialoText
    dialogText = Browser(“browser_name”).GetDialogText

    —————————————————————————

    This should work, too.
    Try it.

    Reply

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s