There was an error while loading. Please reload this page.
1 parent 76b7266 commit 66a17f0Copy full SHA for 66a17f0
javascript/chrome-driver/atoms.js
@@ -216,7 +216,7 @@ webdriver.chrome.isElementClickable = function(elem, coord) {
216
false, 'Element is not clickable at point ' + coordStr);
217
}
218
var elemAtPointHTML = elemAtPoint.outerHTML;
219
- if (elemAtPoint.hasChildNodes()) {
+ if (elemAtPoint.hasChildNodes() && elemAtPointHTML) {
220
var inner = elemAtPoint.innerHTML;
221
var closingTag = '</' + elemAtPoint.tagName + '>';
222
var innerStart = elemAtPointHTML.length - inner.length - closingTag.length;
0 commit comments