在离线模式下在Firefox中运行Selenium RC测试 [英] Running Selenium RC tests in firefox in offline mode

查看:108
本文介绍了在离线模式下在Firefox中运行Selenium RC测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法在离线模式下运行Selenium测试?如果我在firefox配置文件中设置了离线模式,selenium会停留在selenium.start()。我正在使用python客户端驱动程序。代码如下

  sel = selenium('localhost',4444,'* firefox','file:/// / home / user / selenium / selenium-python / client-driver-1.0.1 / inputs / input.html')
sel.start()
sel.open('file:/// home / user / selenium / selenium-python / client-driver-1.0.1 / inputs / input.html')


解决方案

以下描述在 blog 帮助我解决了同样的问题,但是使用了与java的junit测试一样的selenium。

不知道很多关于从python运行硒,我没有看到你在哪里启动与Firefox的配置文件的硒RC服务器。



 
java -jar selenium-server.jar -firefoxProfileTemplate


Is there a way to run Selenium test in offline mode? If I set the offline mode in the firefox profile, selenium is stuck at selenium.start(). I'm using the python client driver. The code is as below

sel = selenium('localhost', 4444, '*firefox', 'file:///home/user/selenium/selenium-python/client-driver-1.0.1/inputs/input.html')
sel.start()
sel.open('file:///home/user/selenium/selenium-python/client-driver-1.0.1/inputs/input.html')

解决方案

The following description in a blog helped me to fix the same problem, but using selenium with java junit tests.

Without knowing to much about running selenium from python, I do not see where you are starting the selenium RC server with the firefox profile.

i.e

java -jar selenium-server.jar -firefoxProfileTemplate ""

这篇关于在离线模式下在Firefox中运行Selenium RC测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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