2010-07-29 50 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(); 
相關問題