CasperJS is basically a finer interface to support headless browser testing for your project.
Headless browser testing is a testing method where developers use a headless browser like SlimerJS, PhantomJS or trifleJS (not supported by CasperJS) to simulate a browser and see how the page reacts.
While the original tools can do this on their own, CasperJS supports a much easier to use interface, heavily inclined towards JavaScript aficionados.
Features:
- Define a series of operations to perform in the browser
- Order and re-order these steps as needed
- Fill forms
- Submit forms
- Click links
- Follow links
- Make a page screenshot
- Log actions & results
- Download resources
- Scrape Web pages
- CoffeeScript support
What is new in this release:
- Fixed version number in package.json.
What is new in version 1.0.0-RC4:
- Fixed:
- Impossible to require CoffeeScript modules
- Injecting clientScripts is not working
- Enhanced Tester.assertField() method, which can now tests for other field types than inputs.
- Casper.getCurrentUrl() could misbehave with encoded urls
- Added:
- Casper.echo() to print a message to the casper console from the remote DOM environment
- Casper.waitForText() to wait for a given text to be present in page HTML contents
- ClientUtils.getFieldValue()
What is new in version 1.0.0-RC1:
- Added support of custom headers sending in outgoing request.
- Added support for prompt() and confirm().
- Added support for PhantomJS 1.6 WebPage#zoomFactor.
- Added url.changed & navigation.requested events.
What is new in version 0.6.10:
- Casper.download() not working correctly with binaries.
- Can't put // comments in evaluate() function.
- Added a Dummy colorizer class, in order to disable colors in console output.
- Updated and fixed documentation about extensibility.
What is new in version 0.6.9:
- PhantomJS 1.5 is now the minimal PhantomJS version supported.
What is new in version 0.6.8:
- Added support for XPath selectors
- Added Tester.assertNotEquals()
What is new in version 0.6.7:
- Fixes:
- Client utils were possibly not yet being injected and available when calling Capser.base64encode() from some events.
- CLI args containing = (equals sign) were not parsed properly.
- googlepagination sample was broken.
What is new in version 0.6.6:
- Tester.assertSelectorExists was broken.
What is new in version 0.6.5:
- tester.findTestFiles() now returns results in predictable order.
- Added --log-level and --direct options to casper test command.
- Fixed 0.6.4 version number in bootstrap.js.
- Centralized version number to package.json.
- Ensured compatibility with PhantomJS 1.5.
Requirements:
- JavaScript enabled on client side
- PhantomJS 1.9.1 or higher
Comments not found