Turn on logging for gecko driver in Selenium Node JS

﹥>﹥吖頭↗ 提交于 2019-12-08 02:47:47

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!