Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function emit(command) {
return exporter.emit.command(command, emitters[command.command], {
variableLookup: Command.variableLookup,
emitNewWindowHandling: Command.extras.emitNewWindowHandling,
})
}
function emit(command) {
return exporter.emit.command(command, Command.emitters[command.command], {
variableLookup: Command.variableLookup,
emitNewWindowHandling: Command.extras.emitNewWindowHandling,
})
}
function canEmit(commandName) {
return !!Command.emitters[commandName]
}
export default {
canEmit,
emit,
register,
extras: { emitWaitForWindow: Command.extras.emitWaitForWindow },
}
function emit(command) {
return exporter.emit.command(command, Command.emitters[command.command], {
variableLookup: Command.variableLookup,
emitNewWindowHandling: Command.extras.emitNewWindowHandling,
})
}
)}).Text, "${exporter.emit.text(text)}");`
)
}
emitters.assertTitle = emitVerifyTitle
emitters.verifyTitle = emitVerifyTitle
async function emitVerifyTitle(title) {
return Promise.resolve(`Assert.Equal(driver.Title, "${title}");`)
}
export default {
canEmit,
emit,
register,
extras: { emitWaitForWindow: Command.extras.emitWaitForWindow },
}