Unable to find and edit the dynamically created elements.

2 posts, 0 answers
  1. Asif
    Asif avatar
    4 posts
    Member since:
    Oct 2015

    Posted 07 Jan 2016 Link to this post

    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?.



  2. Boyan Boev
    Boyan Boev avatar
    1072 posts

    Posted 12 Jan 2016 Link to this post

    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.

    Boyan Boev
    The New Release of Telerik Test Studio Is Here! Download, install,
    and send us your feedback!
Back to Top