Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: Add Screencasting of the browser, save images. v0.15 compatible with Cuprite #511

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

singhprd
Copy link

@singhprd singhprd commented Jan 4, 2025

Work in progress.

To use this:

page.driver.browser.page.start_screencast(save_dir)
page.driver.browser.page.stop_screencast

This only saves images, it's not true video/screencasting but that is actually what Chrome provides.
This could become a 'real' screencast by streaming the images received from Chrome to something that combines them into a video (ffmpeg), but that would require much more complication in this Gem - and can just be done by a user later.

They should be very helpful for viewing and debugging tests.

Taken from this issue discussion: #354

Todo:

@singhprd singhprd changed the title screencast feature v0.15 compatible Feat: Add Screencasting of the browser, save images. v0.15 compatible with Cuprite Jan 8, 2025
lib/ferrum/screencaster.rb Outdated Show resolved Hide resolved
lib/ferrum/screencaster.rb Outdated Show resolved Hide resolved
lib/ferrum/screencaster.rb Outdated Show resolved Hide resolved
lib/ferrum/screencaster.rb Outdated Show resolved Hide resolved
lib/ferrum/screencaster.rb Outdated Show resolved Hide resolved
lib/ferrum/screencaster.rb Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants