lib/page_magic/drivers/selenium.rb in page_magic-1.2.9 vs lib/page_magic/drivers/selenium.rb in page_magic-2.0.0.alpha1
- old
+ new
@@ -1,4 +1,6 @@
+# frozen_string_literal: true
+
PageMagic::Drivers::Selenium = PageMagic::Driver.new(:chrome, :firefox) do |app, options, browser|
- require 'watir-webdriver'
- Capybara::Selenium::Driver.new(app, options.dup.merge(browser: browser))
+ require 'watir'
+ Capybara::Selenium::Driver.new(app, **options.dup.merge(browser: browser))
end