Skip to content

Commit

Permalink
Fix for svg not clickables
Browse files Browse the repository at this point in the history
  • Loading branch information
hekra committed Mar 31, 2017
1 parent 76b7266 commit 66a17f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion javascript/chrome-driver/atoms.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ webdriver.chrome.isElementClickable = function(elem, coord) {
false, 'Element is not clickable at point ' + coordStr);
}
var elemAtPointHTML = elemAtPoint.outerHTML;
if (elemAtPoint.hasChildNodes()) {
if (elemAtPoint.hasChildNodes() && elemAtPointHTML) {
var inner = elemAtPoint.innerHTML;
var closingTag = '</' + elemAtPoint.tagName + '>';
var innerStart = elemAtPointHTML.length - inner.length - closingTag.length;
Expand Down

1 comment on commit 66a17f0

@hekra01
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.