Comparing version 6.1.20 to 6.1.22
@@ -6,3 +6,3 @@ "use strict"; | ||
}); | ||
exports.VENDOR_PREFIX = exports.ERROR_MESSAGES = exports.PPTR_LOG_PREFIX = exports.SERIALIZE_FLAG = exports.SERIALIZE_PROPERTY = exports.SUPPORTED_SELECTOR_STRATEGIES = exports.DEFAULT_SCRIPT_TIMEOUT = exports.DEFAULT_PAGELOAD_TIMEOUT = exports.DEFAULT_IMPLICIT_TIMEOUT = exports.DEFAULTS = exports.SUPPORTED_BROWSER = exports.EDGE_NAMES = exports.FIREFOX_NAMES = exports.CHROME_NAMES = exports.DEFAULT_FLAGS = exports.ELEMENT_KEY = exports.DEFAULT_Y_POSITION = exports.DEFAULT_X_POSITION = exports.DEFAULT_HEIGHT = exports.DEFAULT_WIDTH = void 0; | ||
exports.CHANNEL_FIREFOX_NIGHTLY = exports.VENDOR_PREFIX = exports.BROWSER_ERROR_MESSAGES = exports.ERROR_MESSAGES = exports.PPTR_LOG_PREFIX = exports.SERIALIZE_FLAG = exports.SERIALIZE_PROPERTY = exports.SUPPORTED_SELECTOR_STRATEGIES = exports.DEFAULT_SCRIPT_TIMEOUT = exports.DEFAULT_PAGELOAD_TIMEOUT = exports.DEFAULT_IMPLICIT_TIMEOUT = exports.DEFAULTS = exports.BROWSER_TYPE = exports.SUPPORTED_BROWSER = exports.EDGE_NAMES = exports.FIREFOX_NAMES = exports.CHROME_NAMES = exports.DEFAULT_FLAGS = exports.ELEMENT_KEY = exports.DEFAULT_Y_POSITION = exports.DEFAULT_X_POSITION = exports.DEFAULT_HEIGHT = exports.DEFAULT_WIDTH = void 0; | ||
const DEFAULT_WIDTH = 1200; | ||
@@ -28,2 +28,8 @@ exports.DEFAULT_WIDTH = DEFAULT_WIDTH; | ||
exports.SUPPORTED_BROWSER = SUPPORTED_BROWSER; | ||
const BROWSER_TYPE = { | ||
chrome: 'chrome', | ||
firefox: 'firefox', | ||
edge: 'edge' | ||
}; | ||
exports.BROWSER_TYPE = BROWSER_TYPE; | ||
const DEFAULTS = { | ||
@@ -70,2 +76,18 @@ capabilities: { | ||
exports.ERROR_MESSAGES = ERROR_MESSAGES; | ||
const BROWSER_ERROR_MESSAGES = { | ||
firefoxNightly: `Only Nightly release channel is supported in Devtools/Puppeteer for Firefox. Refer to the following issue: | ||
https://bugzilla.mozilla.org/show_bug.cgi?id=1606604 | ||
You can use the following link to download Firefox Nightly edition: | ||
https://www.mozilla.org/en-US/firefox/channel/desktop/ | ||
Adding the following binary capability in Firefox Options is mandatory to run with Nightly edition: | ||
'moz:firefoxOptions': { | ||
binary: '/path/to/firefox' | ||
} | ||
Note: "Nightly" as a term should be present in the "Firefox Application Name" across all OS's in binary path mentioned above for this to work.` | ||
}; | ||
exports.BROWSER_ERROR_MESSAGES = BROWSER_ERROR_MESSAGES; | ||
const VENDOR_PREFIX = { | ||
@@ -76,2 +98,4 @@ chrome: 'goog:chromeOptions', | ||
}; | ||
exports.VENDOR_PREFIX = VENDOR_PREFIX; | ||
exports.VENDOR_PREFIX = VENDOR_PREFIX; | ||
const CHANNEL_FIREFOX_NIGHTLY = 'nightly'; | ||
exports.CHANNEL_FIREFOX_NIGHTLY = CHANNEL_FIREFOX_NIGHTLY; |
@@ -113,2 +113,4 @@ "use strict"; | ||
throw new Error('Couldn\'t find executable for browser'); | ||
} else if (product === _constants.BROWSER_TYPE.firefox && !executablePath.toLowerCase().includes(_constants.CHANNEL_FIREFOX_NIGHTLY)) { | ||
throw new Error(_constants.BROWSER_ERROR_MESSAGES.firefoxNightly); | ||
} | ||
@@ -128,7 +130,7 @@ | ||
if (_constants.FIREFOX_NAMES.includes(browserName)) { | ||
return launchBrowser(capabilities, 'firefox'); | ||
return launchBrowser(capabilities, _constants.BROWSER_TYPE.firefox); | ||
} | ||
if (_constants.EDGE_NAMES.includes(browserName)) { | ||
return launchBrowser(capabilities, 'edge'); | ||
return launchBrowser(capabilities, _constants.BROWSER_TYPE.edge); | ||
} | ||
@@ -135,0 +137,0 @@ |
{ | ||
"name": "devtools", | ||
"version": "6.1.20", | ||
"version": "6.1.22", | ||
"description": "A Chrome DevTools protocol binding that maps WebDriver commands into Chrome DevTools commands using Puppeteer", | ||
@@ -45,3 +45,3 @@ "author": "Christian Bromann <christian@saucelabs.com>", | ||
}, | ||
"gitHead": "ad3cdf737048fb3c76dc2d9e6a5c46180a673a47" | ||
"gitHead": "f1878255e192abdacccaa7c8a4cf4cc11be0972e" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
85256
2071