SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 6 of 6
  1. #1
    Senior Member
    Join Date
    Jun 2006
    Location
    India
    Posts
    117
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    QTP10 Unable to identify a Window at runtime.

    In my application, we a get a popup window and I have written a function to identify it during runtime, by using desktop.childobjects and creating a object using it. But during runtime, QTP is not able to identify the window only during runtime. When I spy the window, it is identifying the object as winobject and its name as InternetExplorer_Server. I am using QTP 10.0. Please help me.
    Kooltestingkings

  2. #2
    Member
    Join Date
    Nov 2008
    Posts
    65
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: QTP10 Unable to identify a Window at runtime.

    Use low level recording to identify this window

  3. #3
    Senior Member
    Join Date
    Jun 2006
    Location
    India
    Posts
    117
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: QTP10 Unable to identify a Window at runtime.

    In the application, I get a popup window and when we normally identify it gives the hierarcy of objects, but sometimes during runtime, it fails to identify objects inside the window.
    Normally the hierarchy would be Browser-->Window-->Page-->Ok
    , but when it failes to identify, it shows the hierarchy as Browser-->Window-->WinObject-->InternetExplorer_Server. It happens rarely, but my batch is failing in the middle and I have to execute all the scripts again after restarting QTP.
    Kooltestingkings

  4. #4
    Junior Member
    Join Date
    Jan 2008
    Posts
    3
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: QTP10 Unable to identify a Window at runtime.

    Hi,
    Did you try using recovery scenario to handle this?
    does the pop up window raised after some kind of validation event?
    do you know what cause this pop up? in case you do try setting focus on a diffrent control before you get the pop up and try again,

  5. #5
    Junior Member
    Join Date
    May 2009
    Posts
    12
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: QTP10 Unable to identify a Window at runtime.

    See if this helps. The idea comes from IgorG, gotta give him credit. It works awesome for me, and learning how to tap into the windows dll's was fun! Please search for extern to find the original post and get all the details.


    'Trevor Radway 5/19/09
    'Uses Windows User32.dll to modify a window.
    'DialogTitle must match both regexpwndtitle and text properties
    'Example -- Close Dialog - DialogFunction "File Download",16,0,0
    'Example -- Click OK - DialogFunction "Microsoft Internet Explorer",273,1,0
    'Example - Click Cancel - DialogFunction "Microsoft Internet Explorer",273,2,0
    'Where OK and Cancel Buttons Exist, second param(CloseWParam) is the button index.
    'Constant is the numeric WM_ Constant for a standard Window/Dialog Box
    'This will work even if a computer becomes locked while running in a web app Added because previously dialog selections were failing when locked.
    Function DialogFunction(DialogTitle,Constant,CloseWParam,Cl oselParam)
    Extern.Declare miclong, "PostMessage", "user32.dll", "PostMessageA", micHwnd, micLong, micLong, micLong
    Hwnd = Dialog("regexpwndtitle:="&DialogTitle,"text:=" &DialogTitle).GetRoProperty("hwnd")
    lResult = extern.PostMessage(Hwnd, Constant, CloseWParam, CloselParam)
    End Function

  6. #6
    Senior Member
    Join Date
    Jun 2007
    Location
    IL, US
    Posts
    408
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: QTP10 Unable to identify a Window at runtime.

    [ QUOTE ]
    when we normally identify it gives the hierarcy of objects, but sometimes during runtime, it fails to identify objects inside the window.
    Normally the hierarchy would be Browser-->Window-->Page-->Ok
    , but when it failes to identify, it shows the hierarchy as Browser-->Window-->WinObject-->InternetExplorer_Server.

    [/ QUOTE ]

    Does this happen on any PC or the same PC?
    Generaly Object Spy displays "WinObject + InternetExplorer_Server" when there is a problem with the QTP installation.

    Try to retart the system / Run the QuickTestprofessional.bat or reinstall QTP and see if it helps.

    Thanks,
    Pavan

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 9.38%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 11:48 AM.

Copyright BetaSoft Inc.