Hi,
We are trying to automate RADGridView using CUIT and AutomationElement but we are unable to auto scroll to required row. I have searched in the net and I found this article(http://docs.telerik.com/teststudio/advanced-topics/coded-samples/silverlight/radgridview-automation/scrolling) related to GridView for Sliverlight applications. Is there similar type of the code or any fix for WPF RadGridView? Any help to solve this problem is greatly appreciated.
Regards,
Nagasree.
9 Answers, 1 is accepted
The built-in mechanism for scrolling to a given row/column of RadGridView is demonstrated in the Scroll to particular row or column help topic. Can you please check it out?
Would it also be possible for you to share some details on the exact test scenario that you are trying to fulfil, as I was not able to completely understand that from the provided link?
Best Regards,
Stefan X1
Telerik
Hi Stefan,
Hi Stefan,
We are trying to automate RadGridView control using CUIT and UIA and we are unable to find the control until we scroll up to the control.
Try to do automation on the last row of the RadGridView when scrollbar exist using any automation tool.The script fails saying unable to click on the row control.
If still need any information to understand the problem,ask us.
Regards,
Nagasree.
Thanks for the update.
I understand the goal you’re aiming at and we’ve previously researched whether this can be achieved. Due to the virtualized nature of the control, I’m afraid there are several limitations such scrolling functionality to be implemented and I could not offer a possible workaround.
Feel free to contact us in case you have any other questions on our controls.
All the best,
Stefan X1
Telerik
Hi Stefan,
Hi Stefan,
Thanks for your response.We have to plan to automate our application which have Telerik controls.I have even checked with Telerik test studio to automate this control even it is failed.Is there any tool that support automation of this control??
In one of the link they provided the information that UI Automation includes two control patterns to enable clients to work with virtualized items: ItemContainer and VirtualizedItem.I have tried to use this patterns to scroll the control but this patterns are also not available on this RADGridView control.
The link is https://msdn.microsoft.com/en-us/library/windows/desktop/ee684094%28v=vs.85%29.aspx?f=255&MSPPError=-2147217396
Please provide any information about any patterns that help me to achieve this functionality
Regards,
Nagasree.
We did try to implement the pattern but the thing is that it is designed by Microsoft to be used by ItemsControl. However, RadGridView is not such and we had a lot of difficulties in resolving all the issues that come with the implementation that led to breaking the default behavior.
Still, I will discuss the case once again within the team to verify whether the state of the issue is still the same or there are improvements from the way Coded UI should be supported by custom controls.
Regards,
Maya
Telerik
Hi Maya,
Thanks for the reply.We have to take a decision as soon as possible.Please let me know the status as early as possible.
Regards,
Nagasree.
We discussed again the issue and research it one more time. Since RadGridView is not an ItemsControl, it cannot benefit directly from the basic implementation. We did try to reuse it, but it contains code that is internal and cannot be utilized in third-party assembly.
Nevertheless, we logged the issue for further, more profound research and we will do our best to find a solution to the problem. However, based on what we know so far, we cannot commit to any specific time frame or success since we depend on the default Microsoft implementation of the Coded UI.
Regards,
Maya
Telerik