problem with the scroll on a gridControl

6 posts, 2 answers
  1. José
    José avatar
    19 posts
    Member since:
    Mar 2013

    Posted 28 May 2013 Link to this post

    Hey everybody,

    I was do my tests with grid controls and i found one litle big problem. For example, I have one grid with scroll and many rows, every row has 2 columns. My test will go search a cell in a row by content. graphically that row and cell wasn't visible, but in the log output the row and cell are visible.

    anyone have an explanation for this strange case????

    thanks for now

    José Teles
  2. Velin Koychev
    Admin
    Velin Koychev avatar
    88 posts

    Posted 30 May 2013 Link to this post

    Hi José,

    It is actually an expected behavior. Test Studio tries to locate the elements in the DOM Tree. Even if the cells are not visible on your screen, Test Studio will be able to reach them through the DOM Tree.

    I hope this answers your question. If not, please elaborate a bit more your scenario and the goals you have. Send us please the project or record a video how exactly you are recording and executing the test. Jing is a free and decent screen recorder.

    Looking forward to hearing from you. 

    Regards,
    Velin Koychev
    Telerik
    Free summer webinars on advanced web automation tactics hosted by Jim Holmes & Adam Goucher.
    Reserve your seat today!
  3. José
    José avatar
    19 posts
    Member since:
    Mar 2013

    Posted 30 May 2013 Link to this post

    I found the problem, and i don't be in accord with him. The problem of the grid is for example, I have 13 rows in a grid, but if only 10 was visible or partial visible the rows's list only have 10 rows not the 13. It´s normal? I think not, if one grid has 13 rows, the grid has scroll, the rows's list shall have 13 rows and not 10. even 3 of them aren't visivle. I found this because I was print the length of rows's list to the log and in diferente screens with diferent dimension the results are different.

    best,

    José Teles
  4. Answer
    Velin Koychev
    Admin
    Velin Koychev avatar
    88 posts

    Posted 31 May 2013 Link to this post

    Hello José,

    The problem that you are describing is actually expected if you are testing Silverlight application. This is expected behavior due to the nature of Silverlight virtualization. This is a limitation of the Visual Tree contained in the Silverlight engine. Silverlight puts into the Visual Tree only the UI components necessary to render the page on the screen.
    Please see this article for an explanation and a sample solution against RadGridView.

    If you are testing HTML application, Test Studio will be able to see all of the rows, as I described you in my previous post.

    Hope to hear from you soon!

    Regards,
    Velin Koychev
    Telerik
    Free summer webinars on advanced web automation tactics hosted by Jim Holmes & Adam Goucher.
    Reserve your seat today!
  5. José
    José avatar
    19 posts
    Member since:
    Mar 2013

    Posted 31 May 2013 Link to this post

    Hey Velin,

    I found a solution in code, after your replay i found a workaround with the grid and not with virtualized panel. I respect the limitation but i don't like her, it's my honest opinion. thanks anyway for the explanation and for the article. I should read him first :)

    Best,


    José Teles
  6. Answer
    Velin Koychev
    Admin
    Velin Koychev avatar
    88 posts

    Posted 31 May 2013 Link to this post

    Hi José,

    I am glad to hear that you were able to find workaround for this issue. 

    Should you have any additional questions please do not hesitate to ask them.

    Regards,
    Velin Koychev
    Telerik
    Free summer webinars on advanced web automation tactics hosted by Jim Holmes & Adam Goucher.
    Reserve your seat today!
Back to Top