ContributionsMost RecentMost LikesSolutionsgetting an error : error executing on Findrectbytext in win7 machine any suggestion please if (OCRObj.FindRectByText(repCategory)) { X = OCRObj.FoundX; Y = OCRObj.FoundY; Window.DblClick(X, Y); Log.Picture(Window.Picture(OCRObj.FoundLeft, OCRObj.FoundTop, OCRObj.FoundWidth, OCRObj.FoundHeight), "Found region."); } return function what does return mean in this case? I am trying to search a value from group of records in a grid and should match the OrderID(value from different grid) if(equal(Grid.wValue(i,"Order ID"),OrderID)) return i; return -1; if I run this it doesnot show anything in message .I am not sure whther matching happening or not. any suggestions please Re: how can I get values from a grid where there are no wvalue,get rowcount,wcolumncount properties etc. Thanks so much!!:) Appreciate this,Really helped, I was adding the plugin in Devexpress plugin which doesnot change anything in mapping. but adding the plugin in microsoft controls ahs helped me to add properties wvalue wcolumncount etc..Thanks Again!:) Re: how can I get values from a grid where there are no wvalue,get rowcount,wcolumncount properties etc. can you please giva an approach to this? Re: how can I get values from a grid where there are no wvalue,get rowcount,wcolumncount properties etc.Re: how can I get values from a grid where there are no wvalue,get rowcount,wcolumncount properties etc. see below, I also tried to add the properties in objectmapping , but no luck. how can I get values from a grid where there are no wvalue,get rowcount,wcolumncount properties etc. I need to get the divid from the grid. When I use spy , whole grid is selected , There are no properties shown.Screenshot attched.Is there any way I can retriev the value from particular row and column.please give suggestions. SolvedRe: how to compare validation error messages using test complete I already tried Text .It doesnot work.I am not sure what other properies work here to work.Trying for other properties.. Re: how to compare validation error messages using test complete Thanks Martin! I used message instead of contenttext as we are using desktop testing not web. Obj = Aliases.Framework.FindChild('WndCaption', 'Error',30) if (Obj.Message == "Some errors occurred during validation.") Log.Message('Validation Passed') else Log.Error('Validation Failed') It goes to else instead should display validation passed. when I check the add watch button : it has properties including "Text and olevalue= Some errors occurred during validation. could you please suggest. Re: how to compare validation error messages using test complete martin: Could you please give some suggestions for validation messages comparision. I have written below: xtraMessageBoxForm.Click(126, 12); Expected="Some errors occurred during validation" //PropArray= new Arry("WndCaption","Error") PropName ="ContentText" Prop="WndCaption" PropValue="Some errors occurred during validation" Obj = Aliases.Framework.ExcelImportForm.grid.FindChild(PropName,PropValue,30) Actual=aqObject.GetPropertyValue(Obj,Prop) If(Expected == Actual) Log.message("Validation Passed") Else Log.message("Validation Failed")