Skip to content

Commit 66a17f0

Browse files
author
hekra
committed
Fix for svg not clickables
1 parent 76b7266 commit 66a17f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

javascript/chrome-driver/atoms.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ webdriver.chrome.isElementClickable = function(elem, coord) {
216216
false, 'Element is not clickable at point ' + coordStr);
217217
}
218218
var elemAtPointHTML = elemAtPoint.outerHTML;
219-
if (elemAtPoint.hasChildNodes()) {
219+
if (elemAtPoint.hasChildNodes() && elemAtPointHTML) {
220220
var inner = elemAtPoint.innerHTML;
221221
var closingTag = '</' + elemAtPoint.tagName + '>';
222222
var innerStart = elemAtPointHTML.length - inner.length - closingTag.length;

0 commit comments

Comments
 (0)