How to get element from window as provided in screen shot
Posted: 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.
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.