8000 GitHub - hubpan/casperjs: .
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

hubpan/casperjs

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CasperJS Build Status

NOTE: This is a fork of CasperJS for my own need.

This fork contains the following features and fixes:

  • [Feature] selectByLink: enhanced selectByXpath and relevant only if you're converting a selenium script.
  • [Feature] selectByName: to select elements if such elements don't have "id" attribute but instead only "name" attribute.
  • [Feature] Filling individual form element () (versus CasperJS that prefers to fill the form in one-shot).
  • [BugFix] PhantomJS does not support relative URL but somehow there's a Heisenberg lurking around.

CasperJS is a navigation scripting & testing utility for PhantomJS. It eases the process of defining a full navigation scenario and provides useful high-level functions, methods & syntaxic sugar for doing common tasks such as:

Browse the sample examples repository. Don't hesitate to pull request for any cool example of yours as well!

Read the full documentation on casperjs dedicated website.

Subscribe to the project mailing-list

Follow the CasperJS project on twitter and Google+.

Show me some code!

Sample test to see if some dropdown can be opened:

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:

Contributing

Contributing code

Please read the CONTRIBUTING.md file contents.

Contributing documentation

CasperJS's documentation is written using the Markdown format, and hosted on Github thanks to the Github Pages Feature.

To view the source files on github, head to the gh-pages branch, and check the documentation's README for further instructions.

About

.

Resources

License

MIT, BSD-3-Clause licenses found

Licenses found

MIT
LICENSE.md
BSD-3-Clause
LICENSE.BSD

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 76.9%
  • C 14.2%
  • Objective-C 3.4%
  • JavaScript 2.7%
  • Python 1.1%
  • Shell 0.6%
  • Other 1.1%
0