I am trying to automate an Angular application using Protractor and I came across a scenario where I need to list all the files present inside a folder.
I know in Java we can use the following:
File f = new File('D:\Practice');
ArrayList<String> names = new ArrayList<String>(Arrays.asList(f.list()));
But i couldnt get a solution in Javascript.