Forum Discussion

sam_kvale's avatar
sam_kvale
Occasional Contributor
13 years ago

Calling Different Functions

I can call the original javascript funciton attached to the script of the page I am testing like this:



Aliases.browser.pageFileCDocuments20and20setting.contentDocument.Script.getArea(KeywordTests.Test9.Variables.Variable("Side_A"),KeywordTests.Test9.Variables.Variable("Side_B"),KeywordTests.Test9.Variables.Variable("Side_C"))



How would I go about calling a different stub function that I created from another location?  Or could I do this in a differnt way?

1 Reply


  • Hi,


     


    function that I created from another location


    What do you mean by this? If you want to execute *.js files from HDD, you can use the WScript.Shell object. Refer to this thread for details.