I create chrome driver like this:
System.setProperty("webdriver.chrome.driver",
"C:\\Users\\ragnar_000\\IdeaProjects\\ProjectA\\src\\test\\resources\\chromedriver.exe");
webDriver = new ChromeDriver();
This code is written on Windows platform. When I run it on Mac, I have to edit the path according to Mac platform.
How to set/check the path so that it can run on all platforms, like it just needs the path src/test/resources/chromedrivers.exe