The project is in a healthy, maintained state
Selenium download helper.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

selenium_download_helper

Selenium download helper

Installation

Add this line to your application's Gemfile:

group :test do
  gem 'selenium_download_helper'
end

And then execute:

$ bundle install

Usage

RSpec.configure do |config|
  config.include SeleniumDownloadHelper, type: :system
end
it 'Download files' do
  visit export_path
  file = wait_for_downloaded { click_on 'Export' }
  expect(file.basename.to_s).to eq 'export.txt'
  expect(file.extname).to eq  '.txt'
  expect(file.read).to eq 'Export!'
end

Browser support

  • Chrome

NOTE: If non-ascii file names are not saved correctly, set the locale.

- name: Set Locale
  run: |
    sudo locale-gen ja_JP.UTF-8
    sudo update-locale LANG=ja_JP.UTF-8

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/SonicGarden/selenium_download_helper. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the code of conduct.

License

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

Code of Conduct

Everyone interacting in the SeleniumDownloadHelper project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.