Giter Site home page Giter Site logo

lovewitty / casperjs Goto Github PK

View Code? Open in Web Editor NEW

This project forked from casperjs/casperjs

0.0 1.0 0.0 10.34 MB

Navigation scripting & testing utility for PhantomJS and SlimerJS

Home Page: http://casperjs.org/

License: MIT License

Makefile 0.12% Python 4.89% Ruby 0.25% JavaScript 88.43% Shell 0.26% C# 1.23% CoffeeScript 1.08% HTML 3.74%

casperjs's Introduction

CasperJS

Important note: the master branch hosts the development version of CasperJS, which is now pretty stable and should be the right version to use if you ask me.

Use the 1.0 branch if you want to keep in sync with the stable old version, or use tagged versions.

Currently, available documentation is:

Travis-CI build status:

  • Build Status master branch
  • 1.0 tests unfortunately have to be run manually using the casperjs selftest command

CasperJS is a navigation scripting & testing utility for PhantomJS and SlimerJS (still experimental). It eases the process of defining a full navigation scenario and provides useful high-level functions, methods & syntactic 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 documentation website.

Subscribe to the project mailing-list

Follow the CasperJS project on twitter and Google+.

Show me some code!

First install CasperJS, we'll use 1.1 beta here.

Sample test to see if some dropdown can be opened:

casper.test.begin('a twitter bootstrap dropdown can be opened', 2, function(test) {
    casper.start('http://getbootstrap.com/2.3.2/javascript.html#dropdowns', function() {
        test.assertExists('#navbar-example');
        this.click('#dropdowns .nav-pills .dropdown:last-of-type a.dropdown-toggle');
        this.waitUntilVisible('#dropdowns .nav-pills .open', function() {
            test.pass('Dropdown is open');
        });
    }).run(function() {
        test.done();
    });
});

Run the script:

##Support

Help request. If you're stuck using CasperJS and don't understand how to achieve something, please ask on the mailing-list first. If the discussion reveals that you have found a real issue that might need a change within CasperJS, file an issue.

Filing issues. It takes a lot of time to review, validate, and de-duplicate filed issues. This time could be spent better on actually improving on CasperJS. Filing an issue might be a helpful contribution, but we expect you to read our CONTRIBUTING.md guidelines first.

Professional Support. Need help with getting CasperJS up and running? Got a time-consuming problem you want to get solved quickly?

Try to find someone to address your specific problem and post a reward at bountysource.

If you need to have a known issue resolved and don't have the time or skills to do it on your own, you could post a reward for any open issue directly.

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.

Team

License

MIT

casperjs's People

Contributors

n1k0 avatar mickaelandrieu avatar istr avatar laurentj avatar hexid avatar mduvall avatar brikou avatar nathanboktae avatar paazmaya avatar hannyu avatar mepard avatar r8k avatar chiefcll avatar clochix avatar claud avatar reinboom avatar pborreli avatar starlocke avatar p avatar ilangv avatar nrabinowitz avatar zeroem avatar tylerritchie avatar andy-g avatar renatodarrigo avatar tohann avatar rubysolo avatar lukeasrodgers avatar grahack avatar ebouchut avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.