Forum Discussion

stm's avatar
stm
Occasional Contributor
7 years ago

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