本文整理汇总了Java中org.openqa.selenium.server.RemoteControlConfiguration类的典型用法代码示例。如果您正苦于以下问题:Java RemoteControlConfiguration类的具体用法?Java RemoteControlConfiguration怎么用?Java RemoteControlConfiguration使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
RemoteControlConfiguration类属于org.openqa.selenium.server包,在下文中一共展示了RemoteControlConfiguration类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: start
import org.openqa.selenium.server.RemoteControlConfiguration; //导入依赖的package包/类
private void start() throws Exception {
RemoteControlConfiguration config = new RemoteControlConfiguration();
int seleniumPort = getFreePort();
LOG.debug("configured selenium port: " + seleniumPort);
config.setPort(seleniumPort);
this.seleniumServer = new SeleniumServer(config);
this.seleniumServer.start();
// int seleniumPort = this.seleniumServer.getPort();
LOG.debug("selenium port: " + this.seleniumServer.getPort());
String browserStartCommand = "*firefox";
this.selenium = new DefaultSelenium("localhost", seleniumPort, browserStartCommand, "http://www.google.be");
LOG.debug("starting selenium...");
this.selenium.start();
LOG.debug("selenium started.");
this.selenium.setBrowserLogLevel(SeleniumLogLevels.INFO);
}
开发者ID:e-Contract,项目名称:eid-applet,代码行数:17,代码来源:AppletTest.java
示例2: setUp
import org.openqa.selenium.server.RemoteControlConfiguration; //导入依赖的package包/类
@Override
protected void setUp() throws Exception {
super.setUp();
RemoteControlConfiguration configuration = new RemoteControlConfiguration();
configuration.setPort(4433);
seleniumServer = new SeleniumServer(configuration);
seleniumServer.start();
}
开发者ID:strator-dev,项目名称:greenpepper,代码行数:11,代码来源:SeleniumSystemUnderDevelopmentTest.java
示例3: startSeleniumServer
import org.openqa.selenium.server.RemoteControlConfiguration; //导入依赖的package包/类
private static void startSeleniumServer() throws Exception {
if (isWebDriverLocal()) {
try {
ServerSocket serverSocket = new ServerSocket(RemoteControlConfiguration.DEFAULT_PORT);
serverSocket.close();
seleniumServer = new SeleniumServer();
seleniumServer.boot();
seleniumServer.start();
} catch (BindException e) {
System.out.println("Selenium server already up, will reuse...");
}
}
}
开发者ID:wdsx,项目名称:testing-tools,代码行数:15,代码来源:WebDriverManager.java
示例4: startJettyProxy
import org.openqa.selenium.server.RemoteControlConfiguration; //导入依赖的package包/类
protected static void startJettyProxy(int port) throws Exception {
RemoteControlConfiguration config = new RemoteControlConfiguration();
config.setPort(port);
config.setEnsureCleanSession(true);
jettyProxyInstance = new SeleniumServer(config);
jettyProxyInstance.start();
}
开发者ID:blindio,项目名称:Prospero,代码行数:8,代码来源:SeleniumProxySingleton.java
示例5: startServer
import org.openqa.selenium.server.RemoteControlConfiguration; //导入依赖的package包/类
public void startServer() throws Exception {
RemoteControlConfiguration configuration = new RemoteControlConfiguration();
configuration.setProxyInjectionModeArg(true);
configuration.setPort(4444);
remoteControl = new SeleniumServer(configuration);
remoteControl.start();
}
开发者ID:jguglielmi,项目名称:OASIS-Maven,代码行数:9,代码来源:SeleneseScriptFixture.java
示例6: setUp
import org.openqa.selenium.server.RemoteControlConfiguration; //导入依赖的package包/类
@BeforeClass
public static void setUp() throws Exception {
System.out.println("*** Starting selenium ... ***");
RemoteControlConfiguration seleniumConfig = new RemoteControlConfiguration();
seleniumConfig.setPort(4444);
seleniumServer = new SeleniumServer(seleniumConfig);
seleniumServer.start();
String host = System.getProperty("myParam", "localhost");
selenium = createSeleniumClient("http://" + host + ":" + "8080/client/");
selenium.start();
System.out.println("*** Started selenium ***");
}
开发者ID:apache,项目名称:cloudstack,代码行数:14,代码来源:AbstractSeleniumTestCase.java
示例7: getRemoteControlConfiguration
import org.openqa.selenium.server.RemoteControlConfiguration; //导入依赖的package包/类
private RemoteControlConfiguration getRemoteControlConfiguration()
{
RemoteControlConfiguration configuration = new RemoteControlConfiguration();
configuration.setPort(4343);
return configuration;
}
开发者ID:strator-dev,项目名称:greenpepper,代码行数:7,代码来源:SeleniumInterpreter.java
注:本文中的org.openqa.selenium.server.RemoteControlConfiguration类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论