()
| 444 | }; |
| 445 | |
| 446 | const selectorsShot = async () => { |
| 447 | for (let i = 0; i < selectors.length; i++) { |
| 448 | const selector = selectors[i]; |
| 449 | filePath = selectorMap[selector].filePath; |
| 450 | logFilePath = selectorMap[selector].logFilePath; |
| 451 | ensureDirectoryPath(filePath); |
| 452 | try { |
| 453 | await selectorShot(selector, filePath, logFilePath); |
| 454 | } catch (e) { |
| 455 | logger.log('red', `Error capturing Element ${selector}`, e); |
| 456 | await writeScenarioLogs(config, logFilePath, logger); |
| 457 | return fs.copy(config.env.backstop + ERROR_SELECTOR_PATH, filePath); |
| 458 | } |
| 459 | } |
| 460 | }; |
| 461 | await selectorsShot(); |
| 462 | } |
| 463 | } |
no test coverage detected