Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
dvla-browser-drivers
Advanced tools
DVLA-Browser-Drivers is a gem that has pre-configured browser drivers that you can use out-of-the-box for the development of your application.
Add this line to your application's Gemfile:
gem 'dvla-browser-drivers'
And then execute:
$ bundle install
Or install it yourself as:
$ gem install dvla-browser-drivers
Once installed, you are able to use any pre-configured browser driver from the list below:
Driver | Usage |
---|---|
selenium_chrome | DVLA::Browser::Drivers.selenium_chrome |
headless_selenium_chrome | DVLA::Browser::Drivers.headless_selenium_chrome |
selenium_edge | DVLA::Browser::Drivers.selenium_edge |
headless_selenium_edge | DVLA::Browser::Drivers.headless_selenium_edge |
selenium_firefox | DVLA::Browser::Drivers.selenium_firefox |
headless_selenium_firefox | DVLA::Browser::Drivers.headless_selenium_firefox |
Driver | Usage |
---|---|
cuprite | DVLA::Browser::Drivers.cuprite |
headless_cuprite | DVLA::Browser::Drivers.headless_cuprite |
apparition | DVLA::Browser::Drivers.apparition |
headless_apparition | DVLA::Browser::Drivers.headless_apparition |
Driver | Configuration |
---|---|
selenium_chrome, selenium_edge, selenium_firefox | --disable-dev-shm-usage |
headless_ | --headless --no-sandbox |
cuprite, apparition | { 'no-sandbox': nil, disable-smooth-scrolling: true } |
Cuprite Documentation Selenium Additional Preferences Documentation
Option | Driver | Usage | Description |
---|---|---|---|
remote | Selenium, Cuprite, Apparition | selenium_chrome(remote: 'http://localhost:4444/wd/hub') | Allows you to talk to a remote browser |
additional_arguments | Selenium | selenium_chrome(additional_arguments: ['window-size=1400,1920'] | Pass additional arguments to the driver |
additional_preferences | Selenium | selenium_chrome(additional_preferences: [{'download.default_directory': '<download_path>'}] ) | Pass additional preferences to the driver |
timeout | Cuprite, Apparition | cuprite(timeout: 60 ) | Sets the default timeout for the driver |
save_path | Cuprite, Apparition | cuprite(save_path: 'File.expand_path('./somewhere')' ) | Tells the browser where to store downloads |
browser_options | Cuprite, Apparition | cuprite(browser_options: { option: value, option: value }) | Pass additional options to the browser |
After checking out the repo, run bin/setup
to install dependencies. Then, run rake spec
to run the tests. You can
also run bin/console
for an interactive prompt that will allow you to experiment.
To install this gem onto your local machine, run bundle exec rake install
. To release a new version, update the
version number in version.rb
, and then run bundle exec rake release
, which will create a git tag for the version,
push git commits and the created tag, and push the .gem
file to rubygems.org.
FAQs
Unknown package
We found that dvla-browser-drivers demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.