SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Jul 2007
    Location
    Brazil
    Posts
    30
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    WPF textblock recognition

    Hello!

    I'm using QTP 9.5 to test a C#/WPF application.
    This application has some textblock that changes according to the application status.
    QTP does not recognize the wpfobject, neither the changing.
    Does someone already tried to work with wpf textblock? Was it work?

    Thanks for any help.

  2. #2
    Member
    Join Date
    Jun 2006
    Location
    Chennai
    Posts
    58
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: WPF textblock recognition

    Here you go... Modify it according to your needs.....

    <font class="small">Code:</font><hr /><pre>
    Set oDesc = Description.Create()
    oDesc("classname").value = "TextBlock"
    oDesc("wpftypename").value = "text"
    ' oDesc("devname").value = "ctrWord" ' Add this property with the exact value for devname
    Set objDesc = WpfWindow(window).ChildObjects(oDesc)
    Print "WPF Object Count inside the textblock is : "&amp;objDesc.Count
    For iCount=0 to objDesc.Count - 1
    strText=strText &amp; objDesc(iCount).GetROProperty("name")
    Next
    Print strText

    </pre><hr />
    Thanks & Regards
    Ur Friend
    ----------------------------------
    "Quality is not an act, it is a habit."

 

 

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 09:43 AM.

Copyright BetaSoft Inc.