Forum Discussion
Hi Alex,
Thank you very much for your reply. I am not sure this approach can be used for my application. My current application is not designed using Canvas, but using SVG elements and SmartBear replied saying they are not supporting SVG currently.
Please help me in this case.
Thanks,
Srini
Hi Srini,
Absence of support for SVG or canvas means that TestComplete cannot get their internals (e.g. list of displayed graphical elements).
This means that it is not possible to use TestComplete's object model provided via Object Browser to manipulate these elements. With the absence of direct support, I see only two other options possible:
a) Use the approach that I already described. I.e. prepare the tested graphical layout so it is always in the stable, known and predictable state, and use coordinate-based actions to alter it. Then use image comparison to verify that the executed actions resulted in the expected result;
b) Assuming, that the displayed graphic is data-bound, you may emulate the actions by getting/setting the data on the back-end and either compare them with expected values, or, again, do image comparison after data manipulation to verify that manipulation resulted in correct expected data persisted to the storage.