Forum Discussion
Honestly... I don't know. I'm pretty sure there's alot of processing going into the decision... market share, number of requests, complexity, etc.
I'm guessing one of the reasons why SlickGrid is not supported YET is its open-source positioning. This is not a deterrent (SmartBear has several open source product offerigns themselves) but because it doesn't have (a based upon the website) a stable nature of something that you can say "here's our component", it's kind of hard to support it in a tool like TestComplete. As soon as they support it, all it takes is for someone to come along and change the component so the tool no longer works with it. So.... perhaps that's a factor, too.
Now... all that said, please understand.
i am not a SmartBear employee so all these statements are my opinion and my opinion alone and are not reflective of SmartBear's actual policy.
In the meantime, as TanyaYatskovska said, you're best bet until support can be added (if it will be added) is to work with native properties and methods and such on the grid component itself and write your own library of functions to interact with the component. I've had to do that many times in the past and it really works well if done well.
Thanks tristaanogre
Do you have any examples somewhere where automation is done for the grid where testcomplete do not support it ?
Thanks
Nishchal
- tristaanogre5 years agoEsteemed Contributor
I don't have any, personally, no. All the grids and such that I work with are fully supported by TestComplete and recognized as components with rows, columns, cells, etc. So, I'm not sure how much help I'm going to be with that. Perhaps there's someone else that can give more help to you. Keep in mind, any such work will be unique to that grid and may not apply to yours. You will need to work with the native properties and methods of the grid component. Find that grid in your Object Browser (not the sub panels, etc), and start examining all the properties and methods. Refer to the documentation for the grid to understand what's there and how to use it. It's going to take code work to get this to work but it can be done.
- nisgupta5 years agoValued Contributor
We are trying to use FindChild to identify the object. If the object is identfied then we can use Testcomplete properties and methods. But there is a problem testcomplete IDE do not display the methods and properties while coding.
For e.g.
var STVDEGCGrid = Aliases.browser.pageApplicationNavigator.frameBannerhs.formFrames7.panelPnlstvdegc1canvas.panelGrdstvdegc;
var propCodeArray = new Array("ObjectType","contentText");
var valueCodeArray = new Array("Panel","ADN");
var codeColumnValue1 = STVDEGCGrid.FindChild(propCodeArray,valueCodeArray,10);if(codeColumnValue1.Exists){
Log.Message("hello");
Log.message(codeColumnValue1.);
}
after typing codeColumnvalue1. it do not display any properties and methods ?Please advise
Let me know if more information is required
Thanks
Nishchal
- tristaanogre5 years agoEsteemed Contributor
Correct... because FindChild is not executed during design time so it doesn't know what methods or properties it will have (if any). That's where using Object Spy and/or Object Browser is how you're going to have to get those things. This is a manual process.
- nisgupta5 years agoValued Contributor
But I have seen sometimes it show the code completion for the object returned by FindChild methods ? Is it expected ?
Or they will not show code completion ?
Thanks
Nishchal
- tristaanogre5 years agoEsteemed Contributor
Honestly, I would not expect FindChild to return anything for code completion so that fact that you ARE getting it on occasion is a surprise to me.
- nisgupta5 years agoValued Contributor
I am working on the grid where the 2 columns make the row unique.
I have attached the screenshot ftvorgn_ss.png
second attachment showing testcomplete code in javascript.
Got the error
"You are trying to call the "Parent" method or property of an object that does not exist."Please advise.ThanksNishchal - tristaanogre5 years agoEsteemed Contributor
Exactly as the message indicates... you have an object... you are trying to access it's parent through that object... but the original object, for some reason, no longer exist. Something changed in the middle there. Before you use an object, if there is a chance that the object is destroyed in the process, always check for existance.
- nisgupta5 years agoValued Contributor
The object does not exist on the first page . We have pagination and the object exist on the 3rd page . in the script While condition become true and it should clcik on next page but it through the error .
- tristaanogre5 years agoEsteemed Contributor
You cannot call "Exists" on an object that does not exist. Your while should FIRST check for exists... and then, once the object exists, THEN call the Parent object. You cannot call the method or property of an object that does not exist, this includes the "Exists" property. You need to alter your "While" loop...
Related Content
- 9 months agolodecesa
- 8 months agoMehwishDaud
- 2 years agorodm0001
Recent Discussions
- 3 hours agovladd1