How can I tell selenium webserver standalone which firefox version to use?

情到浓时终转凉″ 提交于 2019-12-12 04:23:23

问题


Usually I start my selenium server like this:

java -jar -Dwebdriver.firefox.profile=MyProfile /usr/local/bin/selenium-server-standalone-3.0.1.jar

My programming language is php, so I use mink in which I initialize the Selenium2Driver. By executin my phpunit tests everything works fine, my firefox is started and all the tests run as they should. But selenium always starts my installed firefox version.

How can I start a standalone version? Is there a parameter telling selenium which firefox to start? Or do I have tell mink which one I want to use?


回答1:


Try this:

java -jar -Dwebdriver.firefox.bin="C:\WhateverFolder\youhaveFFON\firefox.exe"


来源:https://stackoverflow.com/questions/41769997/how-can-i-tell-selenium-webserver-standalone-which-firefox-version-to-use

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