Skip to content
This repository has been archived by the owner on Jul 29, 2024. It is now read-only.

Commit

Permalink
feat(global): export By (== by) on the global for use with coffeescri…
Browse files Browse the repository at this point in the history
…pt (or others who prefer it)
  • Loading branch information
juliemr committed Jan 10, 2014
1 parent 092fe1f commit e7d9e08
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ var runTests = function() {
global.$ = browser.$;
global.$$ = browser.$$;
global.element = browser.element;
global.by = protractor.By;
global.by = global.By = protractor.By;

// Do the framework setup here so that jasmine and mocha globals are
// available to the onPrepare function.
Expand Down
1 change: 1 addition & 0 deletions spec/basic/lib_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ describe('protractor library', function() {
expect(protractor).toBeDefined();
expect(browser).toBeDefined();
expect(by).toBeDefined();
expect(By).toBeDefined();
expect(element).toBeDefined();
expect($).toBeDefined();
});
Expand Down

0 comments on commit e7d9e08

Please sign in to comment.