Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
selenium ide custom export
function parse(testCase, source) {
}
function format(testCase, name) {
var result = 'ctx.local.c\n';
var commands = testCase.commands;
for (var i = 0; i < commands.length; i++) {
var command = commands[i];
if (command.type == 'command') {
result += ' .' + command.command + '("' + command.target + '"'
if (command.value) { result += ',"' + command.value + '")\n'; }
else { result += ')\n'; }
}
}
return result;
}
function formatCommands(commands) {
}
@cfnjucs
Copy link

cfnjucs commented Aug 21, 2013

how to use this script?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment