diff --git a/lib/index.js b/lib/index.js index ce32f930e..11eb1129d 100644 --- a/lib/index.js +++ b/lib/index.js @@ -6,6 +6,8 @@ const ElementGlobal = require('./api/_loaders/element-global.js'); const NightwatchClient = require('./core/client.js'); const namespacedApi = require('./core/namespaced-api.js'); const {NightwatchEventHub} = require('./runner/eventHub'); +const HttpRequest = require('./http/request.js'); +const cdp = require('./transport/selenium-webdriver/cdp.js'); const {Logger} = Utils; @@ -483,3 +485,9 @@ const globalBrowserDescriptor = { }; Object.defineProperty(Nightwatch, 'browser', globalBrowserDescriptor); Object.defineProperty(Nightwatch, 'app', globalBrowserDescriptor); + +// expose some internal modules for direct use +module.exports.utils = { + HttpRequest, + cdp +};