SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 9 of 9
  1. #1
    Member
    Join Date
    Jan 2008
    Posts
    34
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Hyperlink not working getting recognized.

    Friends,

    Question: The hyperlink is not getting recognized correctly

    Steps:
    1. Login
    2. Click a link. The link name is "click me-for new version"
    3. Logout

    In the Recorded script the link name is displaying as "click me"
    Run the script, getting error
    Cannot identify the object "click me" (of class Link). Verify that this object's properties match an object currently displayed in your application.

    Here is what is checked.
    Object Spy it is displaying as-- link:click me-for new version
    Object Repository properties: Name: click me
    Description properties->text-> click me-For new version

    I changed in the script to click me-For new version, but still i get error.

    Also will it be a issue if the actual name has hyphens or underscores ?

    Please help.

    Thanks,

  2. #2
    Senior Member
    Join Date
    Dec 2002
    Location
    India
    Posts
    120
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Hyperlink not working getting recognized.

    [ QUOTE ]
    I changed in the script to click me-For new version, but still i get error.


    [/ QUOTE ]

    Did you change in OR too? If not you ll find this error
    cheers

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

    Re: Hyperlink not working getting recognized.

    [ QUOTE ]
    so in this kind of situation which name should we always consider:

    1. Object Spy it is displaying as-- link:click me-for new version
    2. Object Repository properties: Name: click me
    3. Description properties->text-> click me-For new version



    [/ QUOTE ]
    Thanks

  4. #4
    Advanced Member
    Join Date
    Feb 2008
    Location
    Ahmedabad, India
    Posts
    550
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Hyperlink not working getting recognized.

    [ QUOTE ]
    [ QUOTE ]
    so in this kind of situation which name should we always consider:

    1. Object Spy it is displaying as-- link:click me-for new version
    2. Object Repository properties: Name: click me
    3. Description properties->text-> click me-For new version



    [/ QUOTE ]
    Thanks

    [/ QUOTE ]

    change the name in OR from click me to click me-for new version ( what u are getting in Object Spy ). And I think it will work.
    GauranG Shah
    I don't make the software, Rather I make it better.
    My Blogs:
    All About Automation
    Spell Checker

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

    Re: Hyperlink not working getting recognized.

    As per my knowledge, the innertext, name and text should be same for the link. please look into this matter. you can change the link's name and see whether it works.
    - Manish

  6. #6
    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: Hyperlink not working getting recognized.

    You only have one browser open? It sometimes happens that there are multiple browsers open and QTP is checking in the wrong browser for the properties.

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

    Re: Hyperlink not working getting recognized.

    changed in the script and modified in the OR
    but still i'm getting the error:
    Cannot identify the object "click me- for new version" (of class Link). Verify that this object's properties match an object currently displayed in your application.

    also tried to run the Maintenance Run mode (although both the steps looks the same)

    anything else is missing ?

  8. #8
    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: Hyperlink not working getting recognized.

    Add the object again to the OR when error comes. See what properties have change and why the object is not getting recognized.

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

    Re: Hyperlink not working getting recognized.

    I hope i'm adding the object to the OR correctly. However it still throws the error.

    However, when I use GetTOProperties in before step of
    browser().Page().link("click here - for new version).click
    somehow gets executed successfully.

    I really have no idea what make it get executed. Any suggestion.

    Thanks

 

 

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 6.67%
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 02:35 AM.

Copyright BetaSoft Inc.