casper.js 367 B

12345678910111213141516171819
  1. casper.test.begin("Basic connectivity", 1, function (test)
  2. {
  3. test.info("Connecting")
  4. casper
  5. .start('http://localhost:8000/static/spa/login.htm')
  6. .then(function ()
  7. {
  8. test.assertHttpStatus(200)
  9. test.info('Loggin')
  10. this.click('#loginButton')
  11. }).waitForSelector('#upload', function()
  12. {
  13. test.info('Logged In.')
  14. })
  15. .run(function ()
  16. {
  17. test.done()
  18. })
  19. })