Sam Saccone
Sam Saccone
``` js foo.find('.x') .then(function(el) { return el.find('.zap') } .then(function(el) { return el.find('.tom') // if this throws a staleElementError then requery up the chain until we find a valid node and...
The Driver setup is very configurable and simply providing CLI args is not going to be enough for most people. Thus this method should be configurable and or overridable. https://github.com/mojotech/dill.js/blob/master/src/support/index.coffee#L65
Great idea @jaridmargolin ! https://github.com/vvo/selenium-standalone/blob/master/install.js#L59
Without this info it is kinda a pain to go and find the problem with the code.
`Driver.stub("http://wow.com/api/tom/22", {data: struc}).then ->` It is naive to think that everyone who is interested in writing javascript integration tests has the time / ability / permissions to change the server...
Related to https://github.com/mojotech/dill.js/issues/49 However instead of intercepting http requests this command will insert a script tag at the bottom of the page with a users fixtures. `Driver.addFixture({some: "object"}).then ->`