@bucky24/jsbehave 0.12.7 → 0.12.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/index.js +1 -0
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -448,6 +448,7 @@ async function takeScreenshot(test) {
|
|
|
448
448
|
if (!activeDriver) {
|
|
449
449
|
// don't throw, we get here when an error happens so we're already handling a problem
|
|
450
450
|
console.error(`Unable to take screenshot - driver does not exist`);
|
|
451
|
+
return;
|
|
451
452
|
}
|
|
452
453
|
const image = activeDriver.takeScreenshot();
|
|
453
454
|
const useTest = test.replace(/ /g, "_");
|