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

problem with the scroll on a gridControl

5 Answers 68 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
José
Top achievements
Rank 1
José asked on 28 May 2013, 02:50 PM
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

5 Answers, 1 is accepted

Sort by
0
Velin Koychev
Telerik team
answered on 30 May 2013, 11:09 AM
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!
0
José
Top achievements
Rank 1
answered on 30 May 2013, 01:29 PM
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
0
Accepted
Velin Koychev
Telerik team
answered on 31 May 2013, 11:37 AM
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!
0
José
Top achievements
Rank 1
answered on 31 May 2013, 01:17 PM
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
0
Accepted
Velin Koychev
Telerik team
answered on 31 May 2013, 03:39 PM
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!
Tags
General Discussions
Asked by
José
Top achievements
Rank 1
Answers by
Velin Koychev
Telerik team
José
Top achievements
Rank 1
Share this question
or