posted 10 years ago
I have to write entire path, when my code has to access a particular file, lying in my project's home directory. How can I just use slash to reach home directory?
Example:
System.setProperty("webdriver.chrome.driver","D:/dumps/automation/Pulled/gitproject/chromedriverWin.exe");
but I want to use
System.setProperty("webdriver.chrome.driver","/chromedriverWin.exe");