diff --git a/tools/phantomjs/render.js b/tools/phantomjs/render.js
index <HASH>..<HASH> 100644
--- a/tools/phantomjs/render.js
+++ b/tools/phantomjs/render.js
@@ -57,7 +57,7 @@
 
           var rootScope = body.injector().get('$rootScope');
           if (!rootScope) {return false;}
-          var panels = angular.element('div.panel:visible').length;
+          var panels = angular.element('plugin-component').length;
           return rootScope.panelsRendered >= panels;
         });
Phantom render.js is incorrectly retrieving number of active panels (#<I>)

Fixes #<I>