File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -263,15 +263,13 @@ def prepare_page
263
263
264
264
if @browser . options [ :save_path ]
265
265
unless Pathname . new ( @browser . options [ :save_path ] ) . absolute?
266
- raise Error , "supply absolute path as `:save_path` option"
266
+ raise Error , "supply absolute path for `:save_path` option"
267
267
end
268
268
269
269
@browser . command ( "Browser.setDownloadBehavior" ,
270
+ browserContextId : context . id ,
270
271
downloadPath : browser . options [ :save_path ] ,
271
272
behavior : "allow" , eventsEnabled : true )
272
- command ( "Page.setDownloadBehavior" ,
273
- downloadPath : browser . options [ :save_path ] ,
274
- behavior : "allow" )
275
273
end
276
274
277
275
@browser . extensions . each do |extension |
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ module Ferrum
29
29
it "raises an error" do
30
30
expect do
31
31
browser . go_to ( "/#{ filename } " )
32
- end . to raise_error ( Ferrum ::Error , "supply absolute path as `:save_path` option" )
32
+ end . to raise_error ( Ferrum ::Error , "supply absolute path for `:save_path` option" )
33
33
end
34
34
end
35
35
end
You can’t perform that action at this time.
0 commit comments