Add the following code to your project's shard.yml under:
dependencies
to use in production
- OR -
development_dependencies
to use in development
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
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)