How can I make a globally accessible variable in nightwatch.js? I\'m using a variable to store a customized url (dependent on which store is loaded in our online product), b
generaly it is a bad practice, but you can assign it as field of window class.
window
window.someGlobalVar = 'http://example.org/'
and window object is accessible globally