Forum Discussion

TanIlak's avatar
TanIlak
Contributor
3 years ago
Solved

Calling common function for all the scripts

Hi,

I have two scripts Unit1 and Unit2.

I have imported Unit2 in to Unit1. 

When I try to call function webpagereturn which is in unit2. I am getting the error "Cannot read Property ' webpagereturn' of undefined".
Please refer the below Screen shots and help me to resolve this issue.

I need to call a script function in another script file.

 

Unit1 Screenshot

 

Unit2 Screenshot

Error Screenshot