SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 3 of 3
  1. #1
    Senior Member
    Join Date
    Mar 2006
    Location
    Bristol, UK
    Posts
    1,530
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    2147417851 error accessing WpfMenu via ChildObjec

    Hi,

    This my scenario when accessing a WpfMenu with QTP9.2, wpf add-in;

    There are 3 WpfMenu objects in the WpfWindow. If I try WpfWindow().WpfMenu("micclass:=WpfMenu").Exist(0), then false is returned.

    However, if I create a Description object where the only description value is "micclass=WpfMenu", then 3 is returned by the chilobject count.

    If I then try to access the WpfMenu via teh indexed ChildObject, I get an "unspecified error". But if I use DescribeResult(err.number), then I can see the error is "The server threw an exception" which is error code - 2147417851.

    Anyone come across this? Why would QTP not being able to perform an exit on the object but still be able to count it?

  2. #2
    Moderator
    Join Date
    Jul 2005
    Location
    Delhi
    Posts
    15,575
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    7 Thread(s)
    Total Downloaded
    0

    Re: 2147417851 error accessing WpfMenu via ChildO

    Msgbox WpfWindow().WpfMenu("micclass:=WpfMenu","index:=0" ).Exist(0)

    Unspecified error can still occur. THe best possible workaround would be to get the menu object from the WpfWindow object

    WpfWindow().object.....(something here to get the menu)

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

    Re: 2147417851 error accessing WpfMenu via ChildO

    Are you working on Dual monitor???

    I had experienced the similar problem with the same error number. I changed to single monitor and it works good now.

 

 

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 11.54%
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 12:36 AM.

Copyright BetaSoft Inc.