Skip to content

Commit

Permalink
better solution to visible? problem
Browse files Browse the repository at this point in the history
Signed-off-by: José Valim <jose.valim@gmail.com>
  • Loading branch information
boblail authored and josevalim committed Jan 9, 2011
1 parent 4cdc734 commit 7fbdf92
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/capybara/driver/zombie_driver.rb
Expand Up @@ -7,7 +7,7 @@ class Node < Capybara::Driver::Node
include Capybara::Zombie::Helpers

def visible?
native_json(".style.display").to_s !~ /none/
find("./ancestor-or-self::*[contains(@style, 'display:none') or contains(@style, 'display: none')]").empty?
end

def [](name)
Expand Down
2 changes: 1 addition & 1 deletion lib/capybara/zombie/executer.js
Expand Up @@ -19,4 +19,4 @@ net.createServer(function (stream) {
});
}).listen(8124, 'localhost');

console.log('Server running at http://127.0.0.1:8124/');
console.log('Server running at http://127.0.0.1:8124/');

0 comments on commit 7fbdf92

Please sign in to comment.