开发者

can i start a selenium server with different port

can i start a selenium server with different port from my code like we do

seleniumserver s= new seleniumserve开发者_如何学JAVAr(); s.start()

and set port??


Actually there's a constructor that accept a port number

SeleniumServer server = new SeleniumServer(1234);
server.start();


Try this:

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜