Incorrect TextContent after edit

6 posts, 0 answers
  1. Davide
    Davide avatar
    13 posts
    Member since:
    May 2015

    Posted 02 Jul 2015 Link to this post

    Hi all,

    I have an issue with a TableCell value.
    I edit an html table row via form, but when i check if it is edited it give me error.
    Looking into the TableCell with the QuickWatch (I'm using VS plugin) i see that the TextContent has still the old value while only the InnerMarkup is correct.

    I saw the different between InnerMarkup, InnerText and similar, here
    The problem is that into the DOM Explorer i have <td>00000 edited</td>, and in an adiacent td of the same row, the TextContent is correct.

    Can you help me?

     

    Thanks for the support

    Davide

  2. Davide
    Davide avatar
    13 posts
    Member since:
    May 2015

    Posted 07 Jul 2015 in reply to Davide Link to this post

    Please anyone?
  3. Ivaylo
    Admin
    Ivaylo avatar
    750 posts

    Posted 07 Jul 2015 Link to this post

    Hello,

    This problem does not sound related to Test Studio.

    Please elaborate.

    Regards,
    Ivaylo
    Telerik
     
    The New Release of Telerik Test Studio Is Here! Download, install,
    and send us your feedback!
  4. Davide
    Davide avatar
    13 posts
    Member since:
    May 2015

    Posted 07 Jul 2015 Link to this post

    Well... the problem exists

    I can't read the context of a specified <td>, after editing, using InnerText but i can do it for others <td> of the same row that I edited in the same way

    There should be a reason... the DOM shows the same structure for the 2 <td> element with raw text inside, the difference is that i can read one with TextContent and InnerText and the other (the problematic one) with InnerMarkup only...

  5. Davide
    Davide avatar
    13 posts
    Member since:
    May 2015

    Posted 08 Jul 2015 Link to this post

    Solved the issue using table.Refresh();

    I would add that, this time, I didn't like the answer that was given to me, without any attempt to support

     

    Davide

  6. Ivaylo
    Admin
    Ivaylo avatar
    750 posts

    Posted 10 Jul 2015 Link to this post

    Hello Davide,

    Thanks for the clarification and I am glad you were able to fix the problem experienced.

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