Skip to content

Commit

Permalink
Fixes for running with Cuprite on v0.15
Browse files Browse the repository at this point in the history
  • Loading branch information
singhprd committed Jan 4, 2025
1 parent 14666ca commit a452215
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/ferrum/page/screencast.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ class Page
module Screencast
attr_reader :screencaster

def start_screencast
@screencaster.start_screencast
def start_screencast(...)
@screencaster.start_screencast(...)
end

def stop_screencast
Expand Down
4 changes: 2 additions & 2 deletions lib/ferrum/screencaster.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ def add_frame(params)
def recordings_dir
return @recordings_dir if defined? @recordings_dir

session_id = @page.client.session_id
@recordings_dir = FileUtils.mkdir_p("#{@base_dir}/screencast_recordings/#{session_id}/").first
timestamp = (Time.now.to_f * 1000).to_i
@recordings_dir = FileUtils.mkdir_p("#{@base_dir}/screencast_recordings/#{timestamp}/").first
@recordings_dir
end

Expand Down

0 comments on commit a452215

Please sign in to comment.