Skip to content

Instantly share code, notes, and snippets.

@thom4parisot
Created July 12, 2012 13:33
Show Gist options
  • Save thom4parisot/3098134 to your computer and use it in GitHub Desktop.
Save thom4parisot/3098134 to your computer and use it in GitHub Desktop.
Bootstrap Dropdown CasperJS check.
casper.start();
casper.open('http://twitter.github.com/bootstrap/javascript.html#dropdowns');
casper.then(function(){
this.test.assertExists('#navbar-example');
this.click('#dropdowns .nav-pills .dropdown:last-of-type a.dropdown-toggle');
this.wait(2000, function(){
this.test.assertExists('#dropdowns .nav-pills .open', 'Dropdown is open');
});
});
casper.run(function(){
this.test.done();
});
@thom4parisot
Copy link
Author

Solved in CasperJS master. Related to https://github.com/n1k0/casperjs/issues/153

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