Skip to content

Commit

Permalink
firefox: Do not fail when element is not scrollable into view
Browse files Browse the repository at this point in the history
Signed-off-by: Alexei Barantsev <barancev@gmail.com>
  • Loading branch information
p0deje authored and barancev committed Nov 18, 2015
1 parent 2f4a6d8 commit 5664d8a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions javascript/firefox-driver/js/syntheticMouse.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,11 @@ SyntheticMouse.prototype.isElementClickable = function(element) {

var elementAtPoint = owner.elementFromPoint(coords.x, coords.y);

// element may be huge, so coordinates are outside the viewport
if (elementAtPoint === null) {
return;
}

if (element == elementAtPoint) {
return;
}
Expand Down

0 comments on commit 5664d8a

Please sign in to comment.