Oops, do as follows:
1º - Download the .exe driver and place it inside your test resources directory. Something like: src / test / resources / chromedriver.exe.
This directory will be able to be committed.
2nd - In your test class, where you are trying to register the property, search for the exe by this.getClass().getResource("chromedriver.exe").getPath();
. It will fetch the executable from within the test resource, where you stored the exe.
3rd Enjoy!
4º - If you are using Arquillian + Maven, in the arquilian.xml configuration file you need extensions:
<extension qualifier="webdriver">
<property name="browser">${browser}</property>
<property name="chromeDriverBinary">${chromeDriverBinary}</property>
</extension>
and the properties should be registered in the Maven pom.xml.
<properties>
<browser>chrome</browser>
<chromeDriverBinary>src/test/resources/chromedriver.exe</chromeDriverBinary>
</properties>