Skip to content

Instantly share code, notes, and snippets.

@leshy
Created February 14, 2012 15:07
Show Gist options
  • Select an option

  • Save leshy/1827438 to your computer and use it in GitHub Desktop.

Select an option

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) {
}
@lilysghuname
Copy link

how to use this script?

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