diff --git a/app_behat_runtime.js b/app_behat_runtime.js index 182e5c185..8bd63730d 100644 --- a/app_behat_runtime.js +++ b/app_behat_runtime.js @@ -510,7 +510,7 @@ return 'ERROR: ' + error.message; } - var mainContent = getNavCtrl().getActive()._cntDir; + var mainContent = getNavCtrl().getActive().contentRef().nativeElement; var rect = found.getBoundingClientRect(); // Scroll the item into view.