Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/crystal-loot/webdrivers.cr
Manage your Selenium Webdrivers with Crystal
https://github.com/crystal-loot/webdrivers.cr
crystal selenium webdrivers
Last synced: about 2 months ago
JSON representation
Manage your Selenium Webdrivers with Crystal
- Host: GitHub
- URL: https://github.com/crystal-loot/webdrivers.cr
- Owner: crystal-loot
- License: mit
- Created: 2020-04-29T12:04:23.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-10-21T20:54:14.000Z (over 1 year ago)
- Last Synced: 2024-04-14T07:14:44.055Z (10 months ago)
- Topics: crystal, selenium, webdrivers
- Language: Crystal
- Homepage:
- Size: 63.5 KB
- Stars: 12
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Webdrivers
![GitHub release (latest by date)](https://img.shields.io/github/v/release/matthewmcgarvey/webdrivers.cr)
![Build status](https://github.com/matthewmcgarvey/webdrivers.cr/workflows/Crystal%20CI/badge.svg)A Crystal port of the Ruby [webdrivers](https://github.com/titusfortner/webdrivers) gem.
It automatically installs and updates supported webdrivers.## Installation
1. Add the dependency to your `shard.yml`:
```yaml
dependencies:
webdrivers:
github: matthewmcgarvey/webdrivers.cr
```2. Run `shards install`
## Usage
```crystal
require "webdrivers"
```On whichever driver you use, calling `.install` will install, update the local driver if needed and then return the path to it.
### Chrome
```crystal
webdriver_path = Webdrivers::Chromedriver.install
```### Firefox (Gecko)
```crystal
webdriver_path = Webdrivers::Geckodriver.install
```## Development
TODO: Write development instructions here
## Contributing
1. Fork it ()
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request## Contributors
- [Matthew McGarvey](https://github.com/matthewmcgarvey) - creator and maintainer