Prabhakaran Sankar
Prabhakaran Sankar

Reputation: 105

Within a script in the UI Automation instrument, how do I import another script?

Within a script written in JavaScript for the UI Automation instrument, how do I import another JavaScript file?

Upvotes: 6

Views: 1829

Answers (1)

Brad Larson
Brad Larson

Reputation: 170317

Within UI Automation, you can add something like

#import "MySharedFunctions.js"

at the top of your script to have it pull in code from another JavaScript file. This can be used for storing common testing or other helper functions within a shared source file.

Upvotes: 7

Related Questions