Protractor v0.12.0 Release Notes

  • ๐Ÿš€ Note: Major version 0 releases are for initial development, and backwards incompatible changes may be introduced at any time.

    โšก๏ธ This change introduces major syntax updates. Using the new syntax is recommended, but the old version is still supported for now. Note also that the test application, docs, and example tests have been updated.

    ๐Ÿ”‹ Features

    • (a2cd6c8) feat(syntax): big syntax reboot, expose global $, $$, element, and by

    โœ… In an effort to make tests more readable and clear, a few more global variables will now be exported.

    ๐Ÿ’ป browser is an instance of protractor. This was previously accessed using protractor.getInstance.

    by is a collection of element locators. Previously, this was protractor.By.

    $ is a shortcut for getting elements by css. $('.foo') === element(by.css('.foo'))

    โœ… All changes should be backwards incompatible, as tested with the new 'backwardscompat' โœ… tests.

    ๐Ÿ› Bug fixes

    • (8c87ae6) fix(onPrepare): onPrepare with a string argument should resolve from the config directory

    onPrepare can take a string, which is a filename containing a script to load adn execute โœ… before any tests run. This fixes the string to resolve the filename relative to the config file, instead of relative to the current working directory where protractor is called.