SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 10 of 10
  1. #1
    Senior Member
    Join Date
    Jun 2007
    Posts
    513
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    How to Identify unique Properties

    What are the names of the properties that can make a object a unique object? How can we make sure the properties that we are using are unique for that object. or May be it's not possible or it's different for different application. Can someone please help?

  2. #2
    Senior Member
    Join Date
    Dec 2004
    Location
    Pune
    Posts
    166
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How to Identify unique Properties

    I think, 'index' is one the unique property to identify a unique object. But then, xpath can also help you identifying the object uniquely.

    Hope this helps!
    Thanks,
    - ketan.

  3. #3
    Senior Member
    Join Date
    Jun 2007
    Posts
    513
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How to Identify unique Properties

    Thanks,

  4. #4
    Senior Member
    Join Date
    Jun 2007
    Posts
    513
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How to Identify unique Properties

    If the Index helps to identitfy the object, do we still need to give any properties name from Description properties selection ? For instance, I can find by comobox in a dialog box by giving an index, do I still need to give "objectclass" Combobox or any "attachedtext". Thanks

  5. #5
    Senior Member
    Join Date
    Dec 2004
    Location
    Pune
    Posts
    166
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How to Identify unique Properties

    Yes, any common property like name, type or class would do.
    Thanks,
    - ketan.

  6. #6
    Senior Member
    Join Date
    Feb 2008
    Location
    Los Angeles, CA, USA
    Posts
    861
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How to Identify unique Properties

    Open up QTP Help file, look for each object that you have come across. For web, the list shouldnt be much long. Click on the object and see what properties are supported.

    Basically, for each application, there might be different properties which are unique. But most of the times using the following properties will be able to identify the object uniquely

    Browser: name or title
    Page: title
    WebElement: innertext with html tag, html id
    WebEdit: name, html id
    WebButton: name, html id
    Link: name, html id
    Image: alt, html id
    WebList: name, html id
    WebRadioGroup: name, html id

    Best way to find that out - observe and learn
    -Suchit

  7. #7
    Senior Member
    Join Date
    Jun 2007
    Posts
    513
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How to Identify unique Properties

    Thanks, one last clarification, Is there any preferences among name property versus type versus class. If by giving any one it works, I can give class and still it would be fine or there is an order number for instance first try name, then type , etc.

  8. #8
    Senior Member
    Join Date
    Feb 2008
    Location
    Los Angeles, CA, USA
    Posts
    861
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How to Identify unique Properties

    No. But experiment a little bit. Do it yourself. There are no definite answers to everything.
    -Suchit

  9. #9
    Senior Member
    Join Date
    Dec 2004
    Location
    Pune
    Posts
    166
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How to Identify unique Properties

    No there is no such order, you can try with any of the property.
    Thanks,
    - ketan.

  10. #10
    Senior Member
    Join Date
    Jun 2007
    Posts
    513
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How to Identify unique Properties

    Thank you Suchit & Ketan for your time

 

 

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 10.71%
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 05:03 PM.

Copyright BetaSoft Inc.