Skip to content

Instantly share code, notes, and snippets.

@ryankshaw
Forked from flomotlik/translatetest.coffee
Last active December 14, 2015 16:59
Show Gist options
  • Save ryankshaw/5118989 to your computer and use it in GitHub Desktop.
Save ryankshaw/5118989 to your computer and use it in GitHub Desktop.
#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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment