1
0
Fork 0
mirror of https://github.com/thoughtbot/capybara-webkit synced 2023-03-27 23:22:28 -04:00

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

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