Skip to content

YusukeIwaki/minibidi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

minibidi: Mini WebDriver BiDi binding for Ruby

require 'minibidi'

Minibidi::Firefox.launch do |browser|
  context = browser.create_browsing_context
  context.navigate("https://github.com/YusukeIwaki")
  data = context.capture_screenshot(origin: :viewport, format: { type: :png })

  open('YusukeIwaki.png', 'wb') do |f|
    f.write(data)
  end
end

Installation

Add this line to your application's Gemfile:

gem 'minibidi'

And then execute bundle install

License

The gem is available as open source under the terms of the MIT License.

About

Play with WebDriver BiDi

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages