SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 3 of 3
  1. #1
    Junior Member
    Join Date
    Jun 2008
    Posts
    18
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    How to recognize one object(Find details in Body)

    Here is the scenario:
    There is one WebElement Class, and its text properties is the exclusive.And in the below side of this WebElement Class, there is one link. The link object is one image, but there are many same image to this one exist in one page.
    In order to identify this link object, i tried the FireEvent method on this WebElement ojbect.
    (Browser("Smart-Dongle Management").Page("Segment List").WebElement("Test").FireEvent "onclick,-10,30,micLeftBtn (0)")
    Because the relative location does not change between the WebElement Class object and the image link object.
    This method failed, the QTP can not identify this image link.
    Could anybody please provide any good method to solve this problem? Thanks.

  2. #2
    Member
    Join Date
    Jun 2007
    Location
    India
    Posts
    374
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How to recognize one object(Find details in Body)

    If the objects are same on the same page, then with the index property QTP can able to identify that particular object. Try once and see.
    - Manish

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

    Re: How to recognize one object(Find details in Body)

    Hi,
    if there are object with the same properties QTP ad index to identify the object. Every image get an other index.

    For example you have images with the alternative name : MYIMAGE (see alt property of the image) and with index=5:

    Browser("Smart-Dongle Management").Page("Segment List").Image("alt:MYIMAGE , index:=5").Click

    Regards

 

 

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 01:49 PM.

Copyright BetaSoft Inc.