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

Unable to find and edit the dynamically created elements.

1 Answer 76 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Asif
Top achievements
Rank 1
Asif asked on 07 Jan 2016, 10:08 AM

For example, 

During recording, click the htmlbutton which creates the new htmltextbox with dynamic id (say t1) and edit that textbox and give some values to save it.

And during playback, click the htmlbutton which creates the another new htmltextbox  with dynamic id (say t2) but it edits the textbox which already created (ie., t1) instead of textbox (t2).

How to find the dynamic elements using coded steps?.

 

 

1 Answer, 1 is accepted

Sort by
0
Boyan Boev
Telerik team
answered on 12 Jan 2016, 09:15 AM
Hello Asif,

If the ID is dynamically generated, you should avoid it in the find expression.

You should use some static attributes (e.g. TextContent).

Is that possible.

If the issue persists please send me a screen shot of the DOM tree so I can help with the code.

Hope to hear from you soon.

Regards,
Boyan Boev
Telerik
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
Tags
General Discussions
Asked by
Asif
Top achievements
Rank 1
Answers by
Boyan Boev
Telerik team
Share this question
or