在没有显示的Linux服务器上运行Chrome WebDriver [英] Running Chrome WebDriver on a linux server with no display
问题描述
我已经将firefox设置为使用Xvfb在服务器上运行(请参阅 http://www.semicomplete.com/blog/geekery/xvfb-firefox .html ),并想用chrome做类似的事情。这可能吗?
我一直无法找到一种方法来为ChromeDriver编程,就像你可以FirefoxBinary。
我提交了一个改进请求,它附带了一个补丁来允许这样做。你可以在这里看到: http://code.google.com/ p / selenium / issues / detail?id = 2673
编辑:
您可以在下面看到Stephen如何使用这个更改已合并: https://stackoverflow.com/a/16619608/998442
I'd like to run automated tests using selenium2's chrome webdriver on a linux server.
I've already set up firefox to run on the server by using Xvfb (See http://www.semicomplete.com/blog/geekery/xvfb-firefox.html) and would like to do something similar with chrome. Is this possible?
I haven't been able to find a way to do this programmatically for the ChromeDriver like you can with the FirefoxBinary.
I've submitted a improvement request which has a patch attached to allow this. You can see it here: http://code.google.com/p/selenium/issues/detail?id=2673
Edit: You can see below response from Stephen on how to use this now the change has been merged.: https://stackoverflow.com/a/16619608/998442
这篇关于在没有显示的Linux服务器上运行Chrome WebDriver的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!