刚开始用webdriver的朋友一定会苦恼它时常不能启动firefox,很多时候是因为firefox安装在默认路径下。此时,我们有些常用方法,可以解决此问题。
System.setProperty("webdriver.firefox.bin", "D:\\Program Files\\Mozilla Firefox\\firefox.exe");//设置系统权限,system指的是 JRE (runtime)system,不是指 OS
转:webdriver驱动未在默认目录安装的firefox,布布扣,bubuko.com
原文地址:http://www.cnblogs.com/lci05/p/3831511.html