org.openqa.selenium.remote.RemoteWebDriver.startClient()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(1.2k)|赞(0)|评价(0)|浏览(125)

本文整理了Java中org.openqa.selenium.remote.RemoteWebDriver.startClient方法的一些代码示例,展示了RemoteWebDriver.startClient的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。RemoteWebDriver.startClient方法的具体详情如下:
包路径:org.openqa.selenium.remote.RemoteWebDriver
类名称:RemoteWebDriver
方法名:startClient

RemoteWebDriver.startClient介绍

[英]Method called before #startSession(Capabilities). The default implementation is a no-op, but subtypes should override this method to define custom behavior.
[中]在#startSession(功能)之前调用的方法。默认实现是no-op,但子类型应该覆盖此方法以定义自定义行为。

代码示例

代码示例来源:origin: com.github.becauseQA/becauseQA-utils

/**
 * Method called before {@link #startSession(Capabilities) starting a new
 * session}. The default implementation is a no-op, but subtypes should
 * override this method to define custom behavior.
 */
protected void startClient(Capabilities desiredCapabilities, Capabilities requiredCapabilities) {
  startClient();
}

代码示例来源:origin: org.seleniumhq.webdriver/webdriver-remote-client

public RemoteWebDriver(CommandExecutor executor, Capabilities desiredCapabilities) {
 this.executor = executor;
 startClient();
 startSession(desiredCapabilities);
}

代码示例来源:origin: com.github.becauseQA/becauseQA-utils

startClient(desiredCapabilities, requiredCapabilities);
} catch (RuntimeException e) {
  try {

相关文章