Skip to content

Commit

Permalink
ide: record a elements if they dont have hrefs. closes SeleniumHQ#570
Browse files Browse the repository at this point in the history
  • Loading branch information
ddavison committed Jun 17, 2015
1 parent 52e9d64 commit ceddccc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ide/main/src/content/recorder-handlers.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,8 @@ Recorder.prototype.findClickableElement = function(e) {
if (!e.tagName) return null;
var tagName = e.tagName.toLowerCase();
var type = e.type;
if (e.hasAttribute("onclick") || e.hasAttribute("href") || tagName == "button" ||
(tagName == "input" &&
if (e.hasAttribute("onclick") || e.hasAttribute("href") || tagName == "button" || tagName == "a" ||
(tagName == "input" &&
(type == "submit" || type == "button" || type == "image" || type == "radio" || type == "checkbox" || type == "reset"))) {
return e;
} else {
Expand Down

0 comments on commit ceddccc

Please sign in to comment.