Skip to content

Commit

Permalink
Merge pull request #26 from Ognian/fix_for_dot_in_selector
Browse files Browse the repository at this point in the history
- fix for dots in selectors
  • Loading branch information
ebrehault committed Oct 14, 2014
2 parents cb5ec2b + c38ea38 commit a56fcd6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .gitignore
@@ -1,3 +1,4 @@
*.zip
*.sublime-project
*.sublime-workspace
*.sublime-workspace
.idea/*
2 changes: 1 addition & 1 deletion recorder.js
Expand Up @@ -372,7 +372,7 @@ TestRecorder.ElementInfo.prototype.getCleanCSSSelector = function(element) {
var tmp_selector = '';
var accuracy = document.querySelectorAll(selector).length;
if(element.id) {
selector = "#" + element.id.replace(/\./g, '\\\\.');
selector = "#" + element.id.replace(/\./g, '\\.');
accuracy = document.querySelectorAll(selector).length
if(accuracy==1) return selector;
}
Expand Down

0 comments on commit a56fcd6

Please sign in to comment.