I am using a Mac and I am new to it. Here is my question:
There is a folder that I require to include as a File object in Java. When I try this:
File firefoxProfileFolder = new File("/Users/prime/work/dmall/selenium/src/test/resources/firefoxprofile");
It works fine. This code is located in file: /Users/prime/work/dmall/selenium/src/test/java/com/dmall/utils/WebUtil.java
But when I try this:
File firefoxProfileFolder = new File("../../../../resources/firefoxprofile");
I can not load the folder. So the relative path from this file to that folder seems not to work. So what should I do? What is it I am doing wrong?
I require to use the relative path because this code will be run from the server, on which I have no idea what the absoulte path will be.