hermione-retry-command
Advanced tools
Comparing version 1.3.0 to 1.4.0
@@ -10,4 +10,5 @@ 'use strict'; | ||
module.exports = (browser, {retryCount, retryInterval}) => { | ||
const originScreenshot = browser.screenshot.bind(browser); | ||
const isWdioLatest = commonUtils.isWdioLatest(browser); | ||
const commandName = isWdioLatest ? 'takeScreenshot' : 'screenshot'; | ||
const originScreenshot = browser[commandName].bind(browser); | ||
@@ -44,3 +45,3 @@ const screenshotWithRetries = async () => { | ||
browser.addCommand('screenshot', async () => await screenshotWithRetries(), true); | ||
browser.addCommand(commandName, () => screenshotWithRetries(), true); | ||
}; |
{ | ||
"name": "hermione-retry-command", | ||
"version": "1.3.0", | ||
"version": "1.4.0", | ||
"description": "Plugin to retry commands in hermione", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
14299
196
0