Need help with contentDocument.Script.eval
Hi All,
I need a help with contentDocument.Script.eval option.
https://support.smartbear.com/testcomplete/docs/app-testing/web/general/common-tasks/javascript.html
Our Web application, has some wrapper values for few elements. And we have to verify those values...
If it is direct element I am able to access it using...
pageObject.contentDocument.Script.eval("document.getElementsByClassName('"+ elementClassName + "')[0].wrapper.stem.data");
But if it has some parent - child relation, I am not able to figure out the solution. I have given an example using Smartbear website (this website does not have wrapper values).
As shown in the picture below, first I have to access the "Support" Footer (PARENT) and then just go through all its Footer-link [CHILD] wrapper values. Is there a better way I can do this in pageObject.contentDocument.Script.eval
Any help would be greatly appreciated.
Thanks,
Saravana