问题
I am currently using Selenium with Node.Js and FireFox and would like to turn on the logging feature for the geckodriver.
But am not sure how. Plus I would also like to know where the logs will be found. Here is currently how I instantiate the driver.
var fOptions = new firefox.Options();
var profile = new firefox.Profile('./fProfile');
fOptions.setProfile(profile);
driver[0] = new Builder().withCapabilities({'browserName': 'firefox'}).setFirefoxOptions(fOptions).build();
来源:https://stackoverflow.com/questions/48782242/turn-on-logging-for-gecko-driver-in-selenium-node-js