Migration Jscript to JavaScript and contentDocument.Script
Hi,
I'am trying to migrate an existing Project from Jscript to Javascript and I've read the instructions for migration
https://support.smartbear.com/testcomplete/docs/scripting/specifics/javascript-for-jscript-users.html.
Migration self works fine except one strange problem with Internet-Explorer:
The testscript calls custom javascript with page.contentDocument.Script, this works in Chrome and Firefox
In Internet-Explorer I get an error with TypeError: Cannot read property <Javascript-Funktion-Name> of undefined
In Jscript the function call works without any problem. What can be wrong?
Before posting I'v tried several things without sucess.
greetings
Martin Stromberger
Hi,
after reading this page https://support.smartbear.com/testcomplete/docs/app-testing/web/general/common-tasks/javascript.html once again I found the solution. The importand part in the lineked page is "Executing Application-Defined Script Functions"
I've addet the eval an then it worked in Internet-Explorer (and still in Chrome and Firefox)greetings
Martin Stromberger