Issue Facing-I want a code for uploading all files directly from my folder which is inside the project but outside SRS in eclipse.But wile doing so i am getting an error of Null pointer exception or some time file not found error.
Below is the code which i am using to upload
AddNewAppPage lPO = new AddNewAppPage(driver);
ClassLoader classLoader = getClass().getClassLoader();
File file = new File(classLoader.getResource(“./Drivers/e-Pragati Developer Portal.pdf”).getFile());
Actually i don’t want to give xpath of image or file which is to be upload from my system i directly want to upload from the resource folder in eclipse project
Kindly let me know how to do it.Check the image in link provided.