From 183cd803254f7a3ccb3a8650e8ef06b4fff03446 Mon Sep 17 00:00:00 2001 From: Michael Giambalvo Date: Tue, 25 Apr 2017 18:09:46 -0700 Subject: [PATCH] fix(browser): Fix browser.angularAppRoot() By default, it wasn't returning anything. Now it returns a promise that resolves to internalAngularAppRoot. Fixes #4233 --- lib/browser.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/browser.ts b/lib/browser.ts index 3228a4cd0..85d620451 100644 --- a/lib/browser.ts +++ b/lib/browser.ts @@ -209,6 +209,7 @@ export class ProtractorBrowser extends AbstractExtendedWebDriver { return this.internalRootEl; }); } + return wdpromise.when(this.internalRootEl); }, `Set angular root selector to ${value}`); }