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
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.
Velin Koychev
Telerik
Reserve your seat today!
best,
José Teles
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!
Velin Koychev
Telerik
Reserve your seat today!
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
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.
Velin Koychev
Telerik
Reserve your seat today!