2010-07-29 54 views

回答

2

试试这个:

RemoteControlConfiguration conf = new RemoteControlConfiguration(); 
conf.setPort(1234); 
SeleniumServer ss = new SeleniumServer(false, conf); 
+0

我想你不明白我的问题更清晰的构造,我的问题是,开始我的硒服务器在其他端口(不在4444)。也从代码。 我知道我们可以从代码启动硒服务器(如上所述),但如何设置端口? – sasikumar 2010-07-29 09:19:07

+0

对不起,看看我更新的答案。 – atamanroman 2010-07-29 09:44:27

3

其实有接受端口号

SeleniumServer server = new SeleniumServer(1234); 
server.start(); 
相关问题