Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yusukeiwaki/minibidi
Play with WebDriver BiDi
https://github.com/yusukeiwaki/minibidi
Last synced: about 1 month ago
JSON representation
Play with WebDriver BiDi
- Host: GitHub
- URL: https://github.com/yusukeiwaki/minibidi
- Owner: YusukeIwaki
- License: mit
- Created: 2024-04-08T01:06:26.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-10-05T08:52:29.000Z (3 months ago)
- Last Synced: 2024-10-18T08:31:40.920Z (3 months ago)
- Language: Ruby
- Size: 22.5 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# minibidi: Mini WebDriver BiDi binding for Ruby
```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:
```ruby
gem 'minibidi'
```And then execute `bundle install`
## License
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).