CentOS Selenium - 准备Firefox的配置文件 [英] CentOS Selenium - Preparing firefox profile

查看:239
本文介绍了CentOS Selenium - 准备Firefox的配置文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



java -jar selenium-server-standalone-2.19.0.jar - 然后,我输入:
cmd = getNewBrowserSession& 1 = * firefox& 2 = http://www.google.com



b
$ b

然后在正在准备Firefox配置文件...部分进行搜索并崩溃:

lockquote
13: 59:13.105信息 - 准备Firefox配置文件... 13:59:33.366错误 -
无法启动新的浏览器会话,关闭浏览器并清除所有
会话数据
blockquote>

请帮我解决这个问题,我对unix世界相当陌生。
Thanks!

解决方案

你可以定义一个特定的firefox配置文件(你必须先创建它):

  java -jar selenium-server.jar -log SeleniumServer.log -firefoxProfileTemplatePROFILEPATH-interactive 


I'm trying use to selenium with firefox on CentOS from command line like this:

java -jar selenium-server-standalone-2.19.0.jar -interactive

Then, I type: cmd=getNewBrowserSession&1=*firefox&2=http://www.google.com

Then it stucks on "Preparing Firefox profile..." part and crashes:

13:59:13.105 INFO - Preparing Firefox profile... 13:59:33.366 ERROR - Failed to start new browser session, shutdown browser and clear all session data

Please help me solve this, I'm quite new to the unix world. Thanks!

解决方案

you could define a specific firefox profile (you have to create it first):

java -jar selenium-server.jar -log SeleniumServer.log -firefoxProfileTemplate "PROFILEPATH" -interactive

这篇关于CentOS Selenium - 准备Firefox的配置文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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