This is a migrated thread and some comments may be shown as answers.

Organizing Elements and Verifying text in Hyperlink

3 Answers 93 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Mariko
Top achievements
Rank 1
Mariko asked on 15 Nov 2011, 10:43 AM
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

3 Answers, 1 is accepted

Sort by
0
Anthony
Telerik team
answered on 16 Nov 2011, 10:59 PM
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
0
Mariko
Top achievements
Rank 1
answered on 18 Nov 2011, 04:41 AM
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.
0
Anthony
Telerik team
answered on 18 Nov 2011, 04:49 PM
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
Tags
General Discussions
Asked by
Mariko
Top achievements
Rank 1
Answers by
Anthony
Telerik team
Mariko
Top achievements
Rank 1
Share this question
or