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

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

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

RemoteWebDriver.findElementByCssSelector介绍

暂无

代码示例

代码示例来源:origin: appium/java-client

/**
 * Finds a single element by CSS selector.
 *
 * @throws WebDriverException This method doesn't work against native app UI.
 */
public T findElementByCssSelector(String using) throws WebDriverException {
  return (T) super.findElementByCssSelector(using);
}

代码示例来源:origin: io.appium/java-client

/**
 * Finds a single element by CSS selector.
 *
 * @throws WebDriverException This method doesn't work against native app UI.
 */
public T findElementByCssSelector(String using) throws WebDriverException {
  return (T) super.findElementByCssSelector(using);
}

代码示例来源:origin: com.saucelabs/sebuilder-interpreter

@Override
public WebElement find(String value, TestRun ctx) {
  return ctx.driver.findElementByCssSelector(value);
}
@Override

代码示例来源:origin: org.mycore/selenium-utils

public WebElement findElementByCssSelector(String using) {
  return delegate.findElementByCssSelector(using);
}

代码示例来源:origin: org.xwiki.platform/xwiki-platform-test-ui

@Override
public WebElement findElementByCssSelector(String using)
{
  return this.scrollTo(this.wrappedDriver.findElementByCssSelector(using));
}

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

@Override
public WebElement findElementByTagName(String using) {
  if (getW3CStandardComplianceLevel() == 0) {
    return findElement("tag name", using);
  }
  return findElementByCssSelector(using);
}

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

@Override
public WebElement findElementByName(String using) {
  if (getW3CStandardComplianceLevel() == 0) {
    return findElement("name", using);
  }
  return findElementByCssSelector("*[name='" + using + "']");
}

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

@Override
public WebElement findElementById(String using) {
  if (getW3CStandardComplianceLevel() == 0) {
    return findElement("id", using);
  }
  return findElementByCssSelector("#" + cssEscape(using));
}

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

@Override
public WebElement findElementByClassName(String using) {
  if (getW3CStandardComplianceLevel() == 0) {
    return findElement("class name", using);
  }
  return findElementByCssSelector("." + cssEscape(using));
}

相关文章