Verifying Dynamic Elements

3 posts, 0 answers
  1. Rodolpho
    Rodolpho avatar
    1 posts
    Member since:
    May 2011

    Posted 24 May 2011 Link to this post

    Hi, I'm recording tests for a website that generates dynamic elements. For e.g., the success bar, can be loaded in Div, Div1, Div2 or DivN. And it has other dynamic levels above this Div. My Questions is, how could I identify, to verify these elements?

    Rodolpho Dutra
  2. Wayne Mather
    Wayne Mather avatar
    2 posts
    Member since:
    May 2010

    Posted 25 May 2011 Link to this post


    I too am wondering how to enhance the capabilities of finding a HTML element within the DOM when dynamic data is being returned back to the browser. I look forward to telerik's response that maybe able to point me and the parent poster into the deeper bowls of matching elements and identifying them in the DOM.

    NOTE: This is with Telerik TestStudio Evaluation (Comparing against rival product to decide which automated software to purchase)
  3. Stoich
    Stoich avatar
    1 posts

    Posted 27 May 2011 Link to this post

    Hi guys,
        your questions seem to be slightly different:
    @Wayne: it really depends on which part of an element is dynamically-generated. Most commonly IDs for elements are generated dynamically. Check out this KB dealing with that particular case:

    @Rodolpho: in your case you want to make sure the Find Logic for the element is in no way related to its position within the DOM of the page. For instance if the Find Logic is based on an element's tagname and ID then you shouldn't have any problems. However, if the logic uses Xpath or a "then"-type of statements then it will fail because those rely on the DOM structure. Check out this section of our Docs:

    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

Back to Top