File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed
rb/lib/selenium/webdriver Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,9 @@ def for(browser, opts = {})
52
52
else
53
53
Firefox ::Bridge . new ( opts )
54
54
end
55
+ when :firefox_nightly
56
+ Firefox ::Binary . nightly_path
57
+ Firefox ::W3CBridge . new ( opts )
55
58
when :remote
56
59
Remote ::Bridge . new ( opts )
57
60
when :ie , :internet_explorer
Original file line number Diff line number Diff line change @@ -153,6 +153,16 @@ def version
153
153
`#{ path } -v` . strip [ /[^\s ]*$/ ] [ /^\d +/ ] . to_i
154
154
end
155
155
156
+ def nightly_path
157
+ @path = case Platform . os
158
+ when :macosx
159
+ nightly_path = "/Applications/FirefoxNightly.app/Contents/MacOS/firefox-bin"
160
+ nightly_path if File . exist? ( nightly_path )
161
+ when :windows
162
+ Platform . find_in_program_files ( "\\ Nightly\\ firefox.exe" )
163
+ end
164
+ end
165
+
156
166
private
157
167
158
168
def windows_path
You can’t perform that action at this time.
0 commit comments