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

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

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

RemoteWebDriver.findElementsByCssSelector介绍

暂无

代码示例

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

/**
 * Finds many elements by CSS selector.
 *
 * @throws WebDriverException This method doesn't work against native app UI.
 */
public List findElementsByCssSelector(String using) throws WebDriverException {
  return super.findElementsByCssSelector(using);
}

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

/**
 * Finds many elements by CSS selector.
 *
 * @throws WebDriverException This method doesn't work against native app UI.
 */
public List findElementsByCssSelector(String using) throws WebDriverException {
  return super.findElementsByCssSelector(using);
}

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

@Override
public List<WebElement> findElementsByCssSelector(String using)
{
  return this.wrappedDriver.findElementsByCssSelector(using);
}

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

@Override
  public List<WebElement> findElements(String value, TestRun ctx) {
    return ctx.driver.findElementsByCssSelector(value);
  }
},

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

public List<WebElement> findElementsByCssSelector(String using) {
  return delegate.findElementsByCssSelector(using);
}

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

@Override
public List<WebElement> findElementsByName(String using) {
  if (getW3CStandardComplianceLevel() == 0) {
    return findElements("name", using);
  }
  return findElementsByCssSelector("*[name='" + using + "']");
}

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

@Override
public List<WebElement> findElementsByTagName(String using) {
  if (getW3CStandardComplianceLevel() == 0) {
    return findElements("tag name", using);
  }
  return findElementsByCssSelector(using);
}

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

@Override
public List<WebElement> findElementsByClassName(String using) {
  if (getW3CStandardComplianceLevel() == 0) {
    return findElements("class name", using);
  }
  return findElementsByCssSelector("." + cssEscape(using));
}

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

@Override
public List<WebElement> findElementsById(String using) {
  if (getW3CStandardComplianceLevel() == 0) {
    return findElements("id", using);
  }
  return findElementsByCssSelector("#" + cssEscape(using));
}

相关文章