mirror of
https://github.com/teamcapybara/capybara.git
synced 2022-11-09 12:08:07 -05:00
deprecate rather than remove #browser_initialized? (it was public driver API)
This commit is contained in:
parent
88eb97aaa4
commit
6a72a105b5
3 changed files with 16 additions and 0 deletions
|
@ -134,4 +134,10 @@ class Capybara::Driver::Base
|
||||||
def needs_server?
|
def needs_server?
|
||||||
false
|
false
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# @deprecated This method is being removed
|
||||||
|
def browser_initialized?
|
||||||
|
warn "DEPRECATED: #browser_initialized? is deprecated and will be removed in the next version of Capybara"
|
||||||
|
true
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -87,6 +87,11 @@ class Capybara::RackTest::Driver < Capybara::Driver::Base
|
||||||
@browser = nil
|
@browser = nil
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# @deprecated This method is being removed
|
||||||
|
def browser_initialized?
|
||||||
|
super && !@browser.nil?
|
||||||
|
end
|
||||||
|
|
||||||
def get(*args, &block); browser.get(*args, &block); end
|
def get(*args, &block); browser.get(*args, &block); end
|
||||||
def post(*args, &block); browser.post(*args, &block); end
|
def post(*args, &block); browser.post(*args, &block); end
|
||||||
def put(*args, &block); browser.put(*args, &block); end
|
def put(*args, &block); browser.put(*args, &block); end
|
||||||
|
|
|
@ -263,6 +263,11 @@ class Capybara::Selenium::Driver < Capybara::Driver::Base
|
||||||
Selenium::WebDriver::Error::NoSuchWindowError
|
Selenium::WebDriver::Error::NoSuchWindowError
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# @deprecated This method is being removed
|
||||||
|
def browser_initialized?
|
||||||
|
super && !@browser.nil?
|
||||||
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
def within_given_window(handle)
|
def within_given_window(handle)
|
||||||
|
|
Loading…
Reference in a new issue