Commit 8fc28ab6 8fc28ab62ab54d8b0c2c7ae909ac38d28a4b75cd by Nicolas Perriault

updated README

1 parent a46f0258
Showing 1 changed file with 22 additions and 0 deletions
......@@ -23,6 +23,28 @@ Subscribe to the [project mailing-list](https://groups.google.com/forum/#!forum/
Follow the CasperJS project [on twitter](https://twitter.com/casperjs_org) and [Google+](https://plus.google.com/b/106641872690063476159/).
## Show me some code!
Sample test to see if some dropdown can be opened:
```javascript
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();
});
```
Run the script:
![](http://cl.ly/image/112m0F2n162i/Capture%20d%E2%80%99%C3%A9cran%202012-10-19%20%C3%A0%2016.37.15.png)
## Contributing
### Contributing code
......