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 usingprotractor.getInstance
.by
is a collection of element locators. Previously, this wasprotractor.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.