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

Dynamical ingore numbers in the frame

4 Answers 75 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Anderson Marcondes
Top achievements
Rank 1
Anderson Marcondes asked on 06 Oct 2010, 03:47 PM
Hi

When creating a test I came across a problem.

When I walk into a page that contains a frame, the hunt has some numbers at the end.

Example: ctl00_ctl00_rwmMain1286369576460

How do I get the Telerik Web Ui Test Studio ignore this number created.

Note: Since this is a main frame I could not edit the edit option Element.

Thanks.

4 Answers, 1 is accepted

Sort by
0
ephillipe
Top achievements
Rank 2
answered on 06 Oct 2010, 07:28 PM
I have same problem.
I make a simple test... I record an application with RadWindow. In this test, I check if a wherever component exists. The WebUI don't find any component into frame in a RadWindow because the name tag contains a random number.
0
Konstantin Petkov
Telerik team
answered on 06 Oct 2010, 08:33 PM
Hi,

Yes, the RadWindow component generates some random IDs which breaks the automation. Please take a look at the solution from this KB and let us know if you need further assistance.

All the best,
Konstantin Petkov
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
ephillipe
Top achievements
Rank 2
answered on 07 Oct 2010, 12:49 PM
Hello,
I see the tutorial, but the WebUI doesn't allow Edit a frame container of my components. If I use a verifier, like a RadWindow exists, works, but, if I record the Frame Element is not editable.
0
Konstantin Petkov
Telerik team
answered on 07 Oct 2010, 12:54 PM
Hello ephillipe,

You can locate the frame in the Elements Explorer and edit its locator properties. For example RadWindow may generate name which value ends with some random number. Then all you need is to expand the located Frame element properties and change the name so that the expression can match next time (runtime).

Example: say your frame name is "myFrameName12345" where the number is randomly generated. In this case just replace the value with "~myFrameName" and the test should pass. I hope that helps!

Best wishes,
Konstantin Petkov
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
Anderson Marcondes
Top achievements
Rank 1
Answers by
ephillipe
Top achievements
Rank 2
Konstantin Petkov
Telerik team
Share this question
or