only assert styles of elements
@@ -570,7 +570,7 @@ bot.dom.isShown = function(elem, opt_ignoreOpacity) {
// Any element with a display style equal to 'none' or that has an ancestor
// with display style equal to 'none' is not shown.
displayed = function(e) {
- if (bot.dom.getEffectiveStyle(e, 'display') == 'none') {
+ if (bot.dom.isElement(e) && bot.dom.getEffectiveStyle(e, 'display') == 'none') {
return false;
}
