protractor icon indicating copy to clipboard operation
protractor copied to clipboard

Link external library

Open psech opened this issue 12 years ago • 1 comments

Hi,

I have got a question. Is it possible to link external libraries like in Karma?

ex.

files = [
    'lib/myLib.js'
];

or in spec section:

specs = [
    'lib/myLib.js'
];

The reason is I have got my own DataProvider class for Jasmine and I do not want to keep it in every spec.js file.

psech avatar Jan 16 '14 22:01 psech

Protractor tests are run in node.js, so you can just make this a separate file and require it as you would with any other node program..

juliemr avatar Jan 16 '14 22:01 juliemr