public
Last active

  • Download Gist
translatetest.coffee
CoffeeScript
1 2 3 4 5 6 7 8 9 10 11 12 13 14
#Run with casperjs test translate.coffee
casper.start 'http://translate.google.com/', ->
@.sendKeys('#source', 'Guten Tag');
@.then ->
@.click '#gt-submit'
@.waitForText('Good day')
@.then ->
@.test.assertSelectorHasText '#result_box', 'Good day'
@.then ->
@.capture 'output.png'
casper.run ->
@.test.done(1)

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.