Skip to content

Instantly share code, notes, and snippets.

@leshy
Created February 14, 2012 15:07
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leshy/1827438 to your computer and use it in GitHub Desktop.
Save leshy/1827438 to your computer and use it in GitHub Desktop.
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