lib/webdriver_manager/selenium.rb in webdriver_manager-0.4.0 vs lib/webdriver_manager/selenium.rb in webdriver_manager-0.5.0
- old
+ new
@@ -1,10 +1,12 @@
require "selenium-webdriver"
require "webdriver_manager/support"
require "webdriver_manager/drivers/driver_chrome"
require "webdriver_manager/drivers/driver_gecko"
+require "webdriver_manager/drivers/driver_ie"
+require "webdriver_manager/drivers/driver_ms"
module Selenium
module WebDriver
module Chrome
def self.driver_path
@@ -13,9 +15,21 @@
end
module Firefox
def self.driver_path
@driver_path ||= WebDriverManager::GeckoDriver.provision
+ end
+ end
+
+ module IE
+ def self.driver_path
+ @driver_path ||= WebDriverManager::IEDriver.provision
+ end
+ end
+
+ module Edge
+ def self.driver_path
+ @driver_path ||= WebDriverManager::MSDriver.provision
end
end
end
end