1
0
Fork 0
mirror of https://github.com/teamcapybara/capybara.git synced 2022-11-09 12:08:07 -05:00

Remove unused variables in Selenium driver

This commit is contained in:
deepj 2015-02-06 16:13:41 +01:00
parent dbece71888
commit 356a1c673f

View file

@ -132,7 +132,7 @@ class Capybara::Selenium::Driver < Capybara::Driver::Base
@frame_handles[browser.window_handle] ||= []
@frame_handles[browser.window_handle] << frame_handle
end
a=browser.switch_to.frame(frame_handle)
browser.switch_to.frame(frame_handle)
yield
ensure
if browser.switch_to.respond_to?(:parent_frame)
@ -269,7 +269,7 @@ class Capybara::Selenium::Driver < Capybara::Driver::Base
timeout: (options[:wait] || Capybara.default_wait_time),
ignore: Selenium::WebDriver::Error::NoAlertPresentError)
begin
modal = wait.until do
wait.until do
alert = @browser.switch_to.alert
regexp = options[:text].is_a?(Regexp) ? options[:text] : Regexp.escape(options[:text].to_s)
alert.text.match(regexp) ? alert : nil