title: How can I have the ChromeDriver path not be hardcoded?
body: <p>In my selenium tests, I have the path to ChromeDriver hardcoded with </p>
  
  <pre><code>        System.setProperty("webdriver.chrome.driver", "C:\\Users\\kday\\Desktop\\Selenium Stuff\\chromedriver.exe");
          WebDriver driver = new ChromeDriver(); 
  </code></pre>
  
  <p>However, this means that when I export the program as a runnable jar file, that the test will not work since it cannot find the hardcoded path (if it is on another computer).  Is there any way to make it so that either.. </p>
  
  <p>a.) - ChromeDriver is part of the jar and runs with it<br>
  b.) - I can initialize it in the code without hardcoding the value in like that</p>
  
  <p>Mostly, I want all the tests to run (in IE, Chrome, FF) by just running the jar.</p>