问答详情
源自:6-1 常见浏览器的启动

出现这个报错怎么办

Exception in thread "main" org.openqa.selenium.WebDriverException: Cannot find firefox binary in PATH. Make sure firefox is installed. OS appears to be: VISTA

Build info: version: '2.46.0', revision: '87c69e2', time: '2015-06-04 16:17:10'

System info: host: 'Alcour', ip: '10.4.104.16', os.name: 'Windows Vista', os.arch: 'amd64', os.version: '6.2', java.version: '1.6.0_13'

Driver info: driver.version: testDriver


提问者:无敌猪猪侠- 2017-05-26 16:19

个回答

  • 空城旧眸
    2017-05-26 22:18:33

    添加System.setProperty("webdriver.firefox.bin","此处填你安装firefox的位置");