lib/selenium/webdriver/chrome/launcher.rb in selenium-webdriver-0.0.29 vs lib/selenium/webdriver/chrome/launcher.rb in selenium-webdriver-0.1.0
- old
+ new
@@ -73,27 +73,30 @@
end
def launch_chrome(server_url)
args = [
Platform.wrap_in_quotes_if_necessary(self.class.binary_path),
- "--load-extension=#{Platform.wrap_in_quotes_if_necessary tmp_extension_dir}",
+ "--load-extension=#{Platform.wrap_in_quotes_if_necessary(tmp_extension_dir)}",
"--activate-on-launch",
"--disable-hang-monitor",
"--disable-popup-blocking",
"--disable-prompt-on-repost"
]
unless @default_profile
- args << "--user-data-dir=#{Platform.wrap_in_quotes_if_necessary tmp_profile_dir}"
+ args << "--user-data-dir=#{Platform.wrap_in_quotes_if_necessary(tmp_profile_dir)}"
end
unless @secure_ssl
args << "--ignore-certificate-errors"
end
args << server_url
- @process = ChildProcess.build(*args).start
+ @process = ChildProcess.build(*args)
+ @process.io.inherit! if $DEBUG
+
+ @process.start
end
def ext_path
@ext_path ||= Zipper.unzip("#{WebDriver.root}/selenium/webdriver/chrome/extension.zip")
end