Merge pull request #1039 from twalpole/deprecate_attached

Deprecate the Node#attached? method
This commit is contained in:
Thomas Walpole 2017-11-09 07:57:29 -08:00 committed by GitHub
commit d53cf7c214
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -151,6 +151,8 @@ module Capybara::Webkit
end
def attached?
warn "[DEPRECATION] The Capybara::Webkit::Node#attached? " \
"method is deprecated without replacement."
@browser.command("Node", "isAttached", native) == "true"
end