How to use a script in a user interface automation tool, how do I import another script?

Inside a script written in JavaScript for a UI automation tool, how do I import another JavaScript file?

+6
source share
1 answer

As part of the user interface automation, you can add something like

#import "MySharedFunctions.js" 

at the top of your script so that it pulls the code from another JavaScript file. This can be used to store general testing or other helper functions in a common source file.

+7
source

Source: https://habr.com/ru/post/888390/


All Articles