[rb] do not memoize driver path class method
allow using more than one browser session in the same program execution
@@ -33,7 +33,6 @@ module Selenium
# @param [String] driver_name which driver to use.
# @return [String] the path to the correct driver.
def driver_path(driver_name)
- @driver_path ||= begin
unless %w[chromedriver geckodriver msedgedriver IEDriverServer].include?(driver_name)
msg = "Unable to locate driver with name: #{driver_name}"
raise Error::WebDriverError, msg
@@ -45,7 +44,6 @@ module Selenium
location
end
- end
private
