开发者

Running Selenium RC tests in firefox in offline mode

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 开发者_StackOverflow中文版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 “”
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜