protractor
protractor copied to clipboard
Link external library
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.
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..