title: How to Initialise the chrome driver at the class level, using System.set...?
body: <p>I have been using Firefox to run my test cases. But now I want to use Chrome. I want to initialize chrome at the class level, just like I was using Firefox. But setting  system property at class level is giving error, what can I do? Using properties file would work, if yes, how??</p>
  
  <pre><code>public class BaseClass {
  System.setProperty("webdriver.chrome.driver","/home/Desktop/chrome32/chromedriver"); 
  public static WebDriver driver = new ChromeDriver();
  
  public void test(){
  driver.get("http://asdf.com");
  
  ----
  ---
   }
  
  }
  </code></pre>