A Crystal port of the Ruby webdrivers gem. It automatically installs and updates supported webdrivers.
-
Add the dependency to your
shard.yml
:dependencies: webdrivers: github: matthewmcgarvey/webdrivers.cr
-
Run
shards install
require "webdrivers"
On whichever driver you use, calling .install
will install, update the local driver if needed and then return the path to it.
webdriver_path = Webdrivers::Chromedriver.install
webdriver_path = Webdrivers::Geckodriver.install
TODO: Write development instructions here
- Fork it (https://github.com/matthewmcgarvey/webdrivers.cr/fork)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
- Matthew McGarvey - creator and maintainer