We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 577d1b2 commit d1e9b27Copy full SHA for d1e9b27
javascript/firefox-driver/js/utils.js
@@ -734,7 +734,7 @@ Utils.wrapResult = function(result, doc) {
734
}
735
736
// There's got to be a more intelligent way of detecting this.
737
- if (result['tagName']) {
+ if (result.nodeType == 1 && result['tagName']) {
738
return {'ELEMENT': Utils.addToKnownElements(result)};
739
740
0 commit comments