diff --git a/lib/runner.js b/lib/runner.js
index <HASH>..<HASH> 100644
--- a/lib/runner.js
+++ b/lib/runner.js
@@ -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.
diff --git a/spec/basic/lib_spec.js b/spec/basic/lib_spec.js
index <HASH>..<HASH> 100644
--- a/spec/basic/lib_spec.js
+++ b/spec/basic/lib_spec.js
@@ -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();
   });
feat(global): export By (== by) on the global for use with coffeescript (or others who prefer it)