selenium-webdriver 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -36,7 +36,10 @@ module Selenium
|
|
36
36
|
private
|
37
37
|
|
38
38
|
def create_extension
|
39
|
-
|
39
|
+
# TODO: find a better way to do this
|
40
|
+
rm_rf tmp_extension_dir
|
41
|
+
mkdir_p File.dirname(tmp_extension_dir), :mode => 0700
|
42
|
+
cp_r ext_path, tmp_extension_dir
|
40
43
|
|
41
44
|
if Platform.win?
|
42
45
|
cp linked_lib_path, tmp_extension_dir
|
@@ -62,10 +65,6 @@ module Selenium
|
|
62
65
|
@process.start
|
63
66
|
end
|
64
67
|
|
65
|
-
def ext_files
|
66
|
-
Dir["#{ext_path}/*"]
|
67
|
-
end
|
68
|
-
|
69
68
|
def ext_path
|
70
69
|
@ext_path ||= "#{WebDriver.root}/chrome/src/extension"
|
71
70
|
end
|
@@ -87,7 +86,7 @@ module Selenium
|
|
87
86
|
dir
|
88
87
|
end
|
89
88
|
end
|
90
|
-
|
89
|
+
|
91
90
|
class WindowsLauncher < Launcher
|
92
91
|
def linked_lib_path
|
93
92
|
# TODO: x64
|