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

How to combine the same element under different dynamic frames

4 Answers 101 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Cp
Top achievements
Rank 1
Cp asked on 16 Apr 2012, 03:50 AM
Hi,
   telerik team

  For these dynamic frames, the frame ID that the same element belongs to is changed when you record each time. 

  I get the point to change the frame ID to '~****' for locating.

 And my case here is that one step is enter value in the textfield, the other step is to extract value from the textfield.
 So the problem comes, the same textfield is under different frames. 
When I run the test, it failed at the second step to locate i guess.

 Attachment for the frame and element structure is as below, hope it can help.

 Thanks a lot in advance.

4 Answers, 1 is accepted

Sort by
0
Anthony
Telerik team
answered on 16 Apr 2012, 04:36 PM
Hello,

You should be able to edit each of the other three frame nodes the same way you edited the initial one (~FrameDIgFrame). Then refresh the Elements Explorer and all frame nodes should collapse into one.

Kind regards,
Anthony
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
0
Cp
Top achievements
Rank 1
answered on 17 Apr 2012, 09:15 AM
Hi, Anthony

  Thanks for your quick response.

   I tried as you mentioned. And the frame nodes are named in sequence (~FrameDIgFrame, ~FrameDIgFrame0,~FrameDIgFrame1) after refreshing instead of ccollapsing into one.
   Meanwhile, the same element displays seperately under1st frame and 2nd frame before, go under 1st frame with different sequence.
  
   Are they as expected?
  
  
Best Regards.
0
Anthony
Telerik team
answered on 17 Apr 2012, 05:05 PM
Hello,

This indicates that there's still differences between how each Frame node is defined. Each node must have the exact same properties for Test Studio to recognize them as identical and collapse them into one.

For elements, their Find Settings dictate whether they will be recognized as unique. You'll need to edit the find settings of the second element to match that of the first for Test Studio to combine them into one.

If you require further assistance, please attach a copy of the project so I can see the issue directly. I don't need to execute any tests directly, just load the project and inspect the Elements Explorer. If you feel that information is too sensitive for a public forum, attach the project (within a .zip file) to a support ticket (which is confidential) and reference this post.

Greetings,
Anthony
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
0
Cp
Top achievements
Rank 1
answered on 18 Apr 2012, 04:00 AM
Hi, Anthony

  Thank you for your detailed answer.
  I re-recorded the test case yesterday, and this question jumped and it works well now.
  Thank you again and your solution will be a very useful referrence when I meet the similar situation next time.


   Best Regards.
Tags
General Discussions
Asked by
Cp
Top achievements
Rank 1
Answers by
Anthony
Telerik team
Cp
Top achievements
Rank 1
Share this question
or