githubissuesnpmwiki

Rapid Selenium Testing

Here's an example spun file

get"http://google.com"
type"spun authoring"in"[name=q]"
submit
find"#search li h3"
assert"spun" intext
quit

Spun files consist of commands and arguments. Refer to the project wiki for a full list of commands and the arguments they take.

Installing

Spun runs on node.js. Once you have node installed run this:

npm install -g spun

Running

spun -h#for help
#run all your spun files in test
spun ./test/**/*.spun
#run all your spun files in the given browsers
spun --browsers=chrome,ff,ie,safari ./test/**/*.spun