Organizing Elements and Verifying text in Hyperlink

4 posts, 0 answers
  1. Mariko
    Mariko avatar
    39 posts
    Member since:
    Jun 2011

    Posted 15 Nov 2011 Link to this post

    Hi Telerik team.

    I have 2 questions.

    1. How can I remove/organize the added elements that were made as a coded step? I'm not sure how can I monitor the elements that are being used by a coded step? Then clean/remove all the elements that are not being used

    2. Also why does my test fail when I run it again while verifying the text in the hyperlink? It passes first then fails if you run it again. There is a error that says "The object can't be found."

    Thanks
  2. Anthony
    Admin
    Anthony avatar
    19 posts

    Posted 16 Nov 2011 Link to this post

    Hello Mariko,

    1. When you convert a step to code, the element it refers to is changed into a "detached element" (i.e. it's not connected to any specific test steps) and stored in the test file. You can right click the Element node and select the Used By feature. It will be disabled for an element that is not used by a standard step. However there is no indicator as to whether it's used by a coded step. There will be no warning if you remove an element that is used only by a coded step (except a Compilation error the next time you execute).

    2. It's difficult to diagnose that failure without more information. The Export Result to File feature from the Step Failure Details is a good start. A copy of your test and direct access to your app is even better. You can provide that information in a support ticket, which is confidential unlike this forum.

    I have an educated guess, however. Does the hyperlink text change between test runs? Perhaps the actual Find Logic is based on text content so when it changes, the element cannot be found and is never clicked.

    All the best,
    Anthony
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Mariko
    Mariko avatar
    39 posts
    Member since:
    Jun 2011

    Posted 17 Nov 2011 Link to this post

    Hi antony,

    When i try to verify the hyperlink text it has 2 state for our app. The 1st one is NonUnderlineTextbox and the 2nd one is UnderlineTextbox. Also the text value for the hyperlink doesn't change.

    Thanks.
  4. Anthony
    Admin
    Anthony avatar
    19 posts

    Posted 18 Nov 2011 Link to this post

    Hello Mariko,

    Again, without the additional information I requested, I can only speculate at the cause of the failure. Please also see our troubleshooting guide on Unable to Locate Element Failures.  

    Best wishes,
    Anthony
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top