Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

dvla-browser-drivers

Package Overview
Dependencies
Maintainers
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dvla-browser-drivers

  • 3.0.1
  • Rubygems
  • Socket score

Version published
Maintainers
2
Created
Source

DVLA::Browser::Drivers

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.

Installation

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

Usage

Once installed, you are able to use any pre-configured browser driver from the list below:

Selenium drivers

DriverUsage
selenium_chromeDVLA::Browser::Drivers.selenium_chrome
headless_selenium_chromeDVLA::Browser::Drivers.headless_selenium_chrome
selenium_edgeDVLA::Browser::Drivers.selenium_edge
headless_selenium_edgeDVLA::Browser::Drivers.headless_selenium_edge
selenium_firefoxDVLA::Browser::Drivers.selenium_firefox
headless_selenium_firefoxDVLA::Browser::Drivers.headless_selenium_firefox

Non-selenium drivers

DriverUsage
cupriteDVLA::Browser::Drivers.cuprite
headless_cupriteDVLA::Browser::Drivers.headless_cuprite
apparitionDVLA::Browser::Drivers.apparition
headless_apparitionDVLA::Browser::Drivers.headless_apparition

Default configuration

Chromium switches

DriverConfiguration
selenium_chrome, selenium_edge, selenium_firefox--disable-dev-shm-usage
headless_--headless
--no-sandbox
cuprite, apparition{ 'no-sandbox': nil, disable-smooth-scrolling: true }

Additional configuration

Cuprite Documentation Selenium Additional Preferences Documentation

OptionDriverUsageDescription
remoteSelenium, Cuprite, Apparitionselenium_chrome(remote: 'http://localhost:4444/wd/hub')Allows you to talk to a remote browser
additional_argumentsSeleniumselenium_chrome(additional_arguments: ['window-size=1400,1920'] Pass additional arguments to the driver
additional_preferencesSeleniumselenium_chrome(additional_preferences: [{'download.default_directory': '<download_path>'}] )Pass additional preferences to the driver
timeoutCuprite, Apparitioncuprite(timeout: 60 )Sets the default timeout for the driver
save_pathCuprite, Apparitioncuprite(save_path: 'File.expand_path('./somewhere')' )Tells the browser where to store downloads
browser_optionsCuprite, Apparitioncuprite(browser_options: { option: value, option: value })Pass additional options to the browser

Development

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

Package last updated on 28 Nov 2024

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc