title: Selenium WebDriver possible to work without System.setProperty(path to driver)?
body: <p>I using Java with Selenium WebDriver and I wondered is it possible to remover e.g.</p>
  
  <pre><code>System.setProperty("webdriver.gecko.driver", dirPath + "\\src\\test\\resources\\geckodriver.exe");
  </code></pre>
  
  <p>and swap this into import library to maven? I saw on mvnrepository this library</p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;org.seleniumhq.selenium&lt;/groupId&gt;
      &lt;artifactId&gt;selenium-firefox-driver&lt;/artifactId&gt;
      &lt;version&gt;3.5.1&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>and is it possible to remove System.setProperty and add this dependency?</p>