我该如何告诉Selenium Web服务器独立使用哪个Firefox版本? [英] How can I tell selenium webserver standalone which firefox version to use?

查看:157
本文介绍了我该如何告诉Selenium Web服务器独立使用哪个Firefox版本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

通常,我像这样启动我的硒服务器:

Usually I start my selenium server like this:

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

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

我的编程语言是php,因此我使用了Mink来初始化Selenium2Driver.通过executin,我的phpunit测试一切正常,我的firefox已启动,所有测试均按预期运行.但是selenium总是会启动我已安装的firefox版本.

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.

如何启动独立版本?是否有一个参数告诉硒启动哪个Firefox?还是我告诉貂皮我要使用哪一个?

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?

推荐答案

尝试一下:

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

这篇关于我该如何告诉Selenium Web服务器独立使用哪个Firefox版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆