How to get element from window as provided in screen shot

Class library usage, coding and language questions.
shahnawaz2222
Posts: 4
Joined: Tue Aug 02, 2016 9:29 am

How to get element from window as provided in screen shot

Post by shahnawaz2222 » Sat Sep 17, 2016 11:10 am

How to get element from the window which is not picked up by Spy.
Seems like grid is VFFlexGrid.
Please find attachment for details where element is marked in red.
We have to retrieve values from this grid.
Please help us to resolve this issue.Our customer ID is:Customer ID: RX718553

We tried below code but returning children elements are zero.
if(repo.ApolloWorkflowQueueManager.Element79606112Info.Children.Count>0)
{
Report.Log(ReportLevel.Info , "Printed Successfully");
}

1. Attached screen shot(3rd one) of Ranorex snapshop where only scroll bars are listed but not the grid available in that control.
2. Similarly, When we wrote below code :

if(repo.ApolloWorkflowQueueManager.Element79606112.Children.Count > 0)
{
Report.Log(ReportLevel.Info , repo.ApolloWorkflowQueueManager.Element79606112.Children.Count.ToString());
foreach(Element r in repo.ApolloWorkflowQueueManager.Element79606112.Children)
{
Report.Log(ReportLevel.Info , r.ToString() + " 1");
}

//table = repo.ApolloWorkflowQueueManager.Element79606112.FindChild<Table>();
}
else
Report.Log(ReportLevel.Info , "Printed Failed");

It returns only scroll bars controls as children of specified control.

3. We don't have flexgrid control in DLL format. It is available only in Ocx format where it has to be added in toolbox.
But Ranorex is not allowing to run Ocx file and control is not available for accessing.
You do not have the required permissions to view the files attached to this post.

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 7470
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: How to get element from window as provided in screen shot

Post by odklizec » Mon Sep 19, 2016 8:49 am

Hi,

Apparently, Ranorex is not able to identify the 'inner' elements of the VSFlexGridL control. This is a typical problem of custom controls with no or limited accessibility support. Your only hope is most probably using GDI Capture List, as described here:
http://www.ranorex.com/support/user-gui ... tions.html

Basically, you should add the class name of element 79606112 to GDI Capture List, refresh the spy and hope it will show some RAWText elements where you can find and validate desired text. Good luck.
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration