Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
casperjs
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
8fc28ab6
...
8fc28ab62ab54d8b0c2c7ae909ac38d28a4b75cd
authored
2012-10-19 16:38:46 +0200
by
Nicolas Perriault
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
updated README
1 parent
a46f0258
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
README.md
README.md
View file @
8fc28ab
...
...
@@ -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
...
...
Please
register
or
sign in
to post a comment