Skip to content

Instantly share code, notes, and snippets.

@n1k0
Forked from thom4parisot/casper.js
Created July 12, 2012 16:49
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save n1k0/3099264 to your computer and use it in GitHub Desktop.
Save n1k0/3099264 to your computer and use it in GitHub Desktop.
Bootstrap Dropdown CasperJS check.
casper.start('http://twitter.github.com/bootstrap/javascript.html#dropdowns', function() {
this.test.assertExists('#navbar-example');
this.click('#dropdowns .nav-pills .dropdown:last-of-type a.dropdown-toggle');
this.waitUntilVisible('#dropdowns .nav-pills .open', function() {
this.test.pass('Dropdown is open');
});
});
casper.run(function() {
this.test.done();
});
@n1k0
Copy link
Author

n1k0 commented Jul 12, 2012

Finalement j'ai forké :)

@ornicar
Copy link

ornicar commented Jul 12, 2012

ce test a de la gueule. Tu devrais le montrer sur la home de casperJS.org.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment